#11 Fix polish letters in hashtags

This commit is contained in:
Marcin Czachursk 2023-04-06 13:20:50 +02:00
parent f6fb5b7a83
commit 705d2ddd56
1 changed files with 1 additions and 1 deletions

View File

@ -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)"