better mentionPattern

This commit is contained in:
nixzhu
2016-01-13 17:02:17 +08:00
parent 2218dc76c9
commit f862e4fc3a
+1 -1
View File
@@ -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())