-
Notifications
You must be signed in to change notification settings - Fork 46
Open
Description
Hi!
When detecting the country based on the phone prefix, there seems to be an issue — for example, numbers from the US and Canada, or Russia and Kazakhstan, are not always detected correctly.
I suspect the problem might be related to this line:
| if (leadingDigits != null && nationalNumber.startsWith(leadingDigits)) { |
Additionally, there seems to be an issue in the regular expression here:
| leadingDigits: r"33|7", |
It doesn’t correctly match numbers like +7705, which should be identified as Kazakhstan, but they might be misclassified or rejected.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels