Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

A valid SA number fails the parser due to its length #403

Open
san1dhya-HL opened this issue Aug 16, 2024 · 1 comment
Open

A valid SA number fails the parser due to its length #403

san1dhya-HL opened this issue Aug 16, 2024 · 1 comment

Comments

@san1dhya-HL
Copy link

I am using the package to validate the mobile numbers entered.

A customer entered a valid south african number - +27282xxxxxxxx (example: country code - +27, mobile number length excluding code - 11), shows up as invalid. reason - length of the number. If you discard the last two digits, the phone number becomes valid.

As confirmed by the user, the number is certainly a valid number.

https://libphonenumber.appspot.com/phonenumberparser?number=+2728229492770&country=SA - link for the libphonenumber demo

Screenshot 2024-08-16 at 12 49 16
@SarhaneGhribi
Copy link

@san1dhya-HL "SA" is not South Africa it is Saudi arabia. As i can see in your demo
Screenshot from 2024-11-08 08-47-53
the country code is 966 which is saudi arabia.
South Africa should be ZA not SA.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants