Allow slashes in phone numbers

Close #1102
This commit is contained in:
MM20 2024-10-04 12:11:40 +02:00
parent 5ae84babf2
commit a92e97955e
No known key found for this signature in database
GPG Key ID: 0B61A8F2DEAFA389

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