Skip to content

Commit

Permalink
Allow slashes in phone numbers
Browse files Browse the repository at this point in the history
Close #1102
  • Loading branch information
MM2-0 committed Oct 4, 2024
1 parent 5ae84ba commit a92e979
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit a92e979

Please sign in to comment.