diff --git a/ActiveLabel/RegexParser.swift b/ActiveLabel/RegexParser.swift index fe9bd7ab..fc948541 100644 --- a/ActiveLabel/RegexParser.swift +++ b/ActiveLabel/RegexParser.swift @@ -11,7 +11,7 @@ import Foundation struct RegexParser { static let hashtagPattern = "(?:^|\\s|$)#[\\p{L}0-9_]*" - static let mentionPattern = "(?:^|\\s|$|[.])@[\\p{L}0-9_]*" + static let mentionPattern = "(?:^|\\s|$|[.])@[\\p{L}0-9_\\.]*" static let emailPattern = "[A-Z0-9a-z._%+-]+@[A-Za-z0-9.-]+\\.[A-Za-z]{2,64}" static let urlPattern = "(^|[\\s.:;?\\-\\]<\\(])" + "((https?://|www\\.|pic\\.)[-\\w;/?:@&=+$\\|\\_.!~*\\|'()\\[\\]%#,☺]+[\\w/#](\\(\\))?)" +