Added dot to allowed phone number chars (#1150)

This commit is contained in:
Timo 2024-12-04 19:07:19 +01:00 committed by GitHub
parent cebdd68074
commit 20357eb1c7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -24,7 +24,7 @@ internal class TextClassifierImpl : TextClassifier {
email = query
)
query.matches(Regex("^\\+?[0-9- /]{4,18}$")) -> TextClassificationResult(
query.matches(Regex("^\\+?[0-9- /.]{4,18}$")) -> TextClassificationResult(
type = TextType.PhoneNumber,
text = query,
phoneNumber = query