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
@@ -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