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.