Skip to content

Commit

Permalink
MXTools: Allow '@' in room alias
Browse files Browse the repository at this point in the history
  • Loading branch information
manuroe committed Sep 21, 2018
1 parent e6be7e9 commit c37b3b5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ Improvements:
Bug fix:
* Lazy-Loading: Fix regression on peeking (vector-im/riot-ios/issues/2035).
* MXRestClient: Fix get public rooms list Swift refinement.
* MXTools: Allow '@' in room alias (vector-im/riot-ios/issues/1977).

Changes in Matrix iOS SDK in 0.11.3 (2018-08-27)
===============================================
Expand Down
2 changes: 1 addition & 1 deletion MatrixSDK/Utils/MXTools.m
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
#define MATRIX_HOMESERVER_DOMAIN_REGEX @"[A-Z0-9.-]+(\\.[A-Z]{2,})?+(\\:[0-9]{2,})?"

NSString *const kMXToolsRegexStringForMatrixUserIdentifier = @"@[\\x21-\\x39\\x3B-\\x7F]+:" MATRIX_HOMESERVER_DOMAIN_REGEX;
NSString *const kMXToolsRegexStringForMatrixRoomAlias = @"#[A-Z0-9._%#+-]+:" MATRIX_HOMESERVER_DOMAIN_REGEX;
NSString *const kMXToolsRegexStringForMatrixRoomAlias = @"#[A-Z0-9._%#@+-]+:" MATRIX_HOMESERVER_DOMAIN_REGEX;
NSString *const kMXToolsRegexStringForMatrixRoomIdentifier = @"![A-Z0-9]+:" MATRIX_HOMESERVER_DOMAIN_REGEX;
NSString *const kMXToolsRegexStringForMatrixEventIdentifier = @"\\$[A-Z0-9]+:" MATRIX_HOMESERVER_DOMAIN_REGEX;
NSString *const kMXToolsRegexStringForMatrixGroupIdentifier = @"\\+[A-Z0-9=_\\-./]+:" MATRIX_HOMESERVER_DOMAIN_REGEX;
Expand Down

0 comments on commit c37b3b5

Please sign in to comment.