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:
It doesn’t correctly match numbers like +7705, which should be identified as Kazakhstan, but they might be misclassified or rejected.
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:
phone_numbers_parser/lib/src/metadata/metadata_finder.dart
Line 115 in e4fb46e
Additionally, there seems to be an issue in the regular expression here:
phone_numbers_parser/lib/src/metadata/generated/metadata_by_iso_code.dart
Line 977 in e4fb46e
It doesn’t correctly match numbers like +7705, which should be identified as Kazakhstan, but they might be misclassified or rejected.