Fixes #2618 - Allow dashes in room identifiers

This commit is contained in:
Stefan Ceriu
2024-04-01 10:52:02 +03:00
parent 834a830952
commit cb585eef5f
4 changed files with 14 additions and 1 deletions
@@ -34,7 +34,7 @@ enum MatrixEntityRegex: String {
case .roomAlias:
return "#[A-Z0-9._%#@=+-]+:" + MatrixEntityRegex.homeserver.rawValue
case .roomId:
return "![A-Z0-9]+:" + MatrixEntityRegex.homeserver.rawValue
return "![A-Z0-9_\\-\\/]+:" + MatrixEntityRegex.homeserver.rawValue
case .eventId:
return "\\$[a-z0-9_\\-\\/]+(:[a-z0-9]+\\.[a-z0-9]+)?"
case .allUsers: