Fix #4946 - Linkification strips trailing brackets from URLs

This commit is contained in:
Stefan Ceriu
2026-01-12 15:46:42 +02:00
committed by Stefan Ceriu
parent 4cfedefcca
commit 29dfba140d
3 changed files with 16 additions and 8 deletions
@@ -30,4 +30,10 @@ extension CharacterSet {
static let matrixUserIDAllowedCharacters = CharacterSet(charactersIn: "abcdefghijklmnopqrstuvwxyz0123456789._=-/@:")
static let roomAliasAllowedCharacters = CharacterSet(charactersIn: "abcdefghijklmnopqrstuvwxyz0123456789!$&‘()*+/;=?@[]-._:#")
static let punctuationWithoutClosingBracketCharacters: CharacterSet = {
var baseSet: CharacterSet = .punctuationCharacters
baseSet.remove(")")
return baseSet
}()
}