mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-23 06:35:51 +00:00
Various Improvements
This commit is contained in:
@@ -309,7 +309,7 @@ public func addLocallyGeneratedEntities(_ text: String, enabledTypes: EnabledEnt
|
||||
}
|
||||
}
|
||||
|
||||
if hasDigits {
|
||||
if hasDigits || hasColons {
|
||||
if let phoneNumberDetector = phoneNumberDetector, detectPhoneNumbers {
|
||||
let utf16 = text.utf16
|
||||
phoneNumberDetector.enumerateMatches(in: text, options: [], range: NSMakeRange(0, utf16.count), using: { result, _, _ in
|
||||
|
||||
Reference in New Issue
Block a user