mirror of
https://github.com/wahyd4/Yep.git
synced 2026-08-24 20:26:02 +10:00
better mentionPattern
This commit is contained in:
@@ -35,7 +35,7 @@ class ChatTextView: UITextView {
|
||||
|
||||
// mention link
|
||||
|
||||
let mentionPattern = "@[^\\s::,,@]+$?"
|
||||
let mentionPattern = "@[A-Za-z0-9_]+$?"
|
||||
|
||||
let mentionExpression = try! NSRegularExpression(pattern: mentionPattern, options: NSRegularExpressionOptions())
|
||||
|
||||
|
||||
Reference in New Issue
Block a user