Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Support E.164-based Matrix IDs (MSC4009)
  • Loading branch information
aine-etke committed Dec 11, 2024
commit 4fd18007def3fe779cb7c99a0e6be698c169ae49
2 changes: 1 addition & 1 deletion src/resources/users.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ export const UserList = (props: ListProps) => (
// here only local part of user_id
// maxLength = 255 - "@" - ":" - storage.getItem("home_server").length
// storage.getItem("home_server").length is not valid here
const validateUser = [required(), maxLength(253), regex(/^[a-z0-9._=\-/]+$/, "synapseadmin.users.invalid_user_id")];
const validateUser = [required(), maxLength(253), regex(/^[a-z0-9._=\-\+/]+$/, "synapseadmin.users.invalid_user_id")];

const validateAddress = [required(), maxLength(255)];

Expand Down
1 change: 0 additions & 1 deletion src/utils/mxid.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@ export function returnMXID(input: string | Identifier): string {
const homeserver = localStorage.getItem("home_server");

// Check if the input already looks like a valid MXID (i.e., starts with "@" and contains ":")
const mxidPattern = /^@[^@:]+:[^@:]+$/;
if (isMXID(input)) {
return input as string; // Already a valid MXID
}
Expand Down