We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a71c8ad commit d457a20Copy full SHA for d457a20
lib/matrix_sdk/mxid.rb
@@ -8,7 +8,7 @@ class MXID
8
def initialize(identifier)
9
raise ArgumentError, 'Identifier must be a String' unless identifier.is_a? String
10
raise ArgumentError, 'Identifier is too long' if identifier.size > 255
11
- raise ArgumentError, 'Identifier lacks required data' unless identifier =~ %r{^([@!$+#][^:]+:[^:]+(?::\d+)?)|(\$[A-Za-z0-9+/]+)$}
+ raise ArgumentError, 'Identifier lacks required data' unless identifier =~ %r{^([@!$+#][^:]+:[^:]+(?::\d+)?)|([$!][A-Za-z0-9_+/-]+)$}
12
13
# TODO: Community-as-a-Room / Profile-as-a-Room, in case they're going for room aliases
14
@sigil = identifier[0]
0 commit comments