Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TW-1735: update isValidMatrixId for user id #59

Merged
merged 1 commit into from
May 22, 2024

Conversation

Te-Z
Copy link

@Te-Z Te-Z commented May 21, 2024

If matrix id is a user id (starts with @, isValidMatrixId now checks those conditions:

  • the localpart of a user ID is an opaque identifier for that user.
  • it MUST NOT be empty, and MUST contain only the characters a-z, 0-9, ., _, =, -, /, and +
  • the hostname can be followed by an optional numeric port specifier.
  • the hostname may be a dotted-quad IPv4 address literal, an IPv6 address literal surrounded with square brackets, or a DNS name.

Source: https://spec.matrix.org/v1.10/appendices/#user-identifiers

@Te-Z Te-Z merged commit 32d3a73 into twake-supported-0.22.6 May 22, 2024
3 of 9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants