#11 Fix polish letters in hashtags
This commit is contained in:
parent
f6fb5b7a83
commit
705d2ddd56
|
@ -74,7 +74,7 @@ public class TextModel: NSObject, ObservableObject {
|
|||
.underlineColor: UIColor.clear],
|
||||
range: NSRange(location: 0, length: text.string.utf16.count))
|
||||
|
||||
let hashtagPattern = "(#+[a-zA-Z0-9(_)]{1,})"
|
||||
let hashtagPattern = "(#+[\\w0-9(_)]{1,})"
|
||||
let mentionPattern = "(@+[a-zA-Z0-9(_).-]{1,})"
|
||||
let urlPattern = "(?i)https?://(?:www\\.)?\\S+(?:/|\\b)"
|
||||
|
||||
|
|
Loading…
Reference in New Issue