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

Example number's length is wrong #426

Open
ronakYudiz opened this issue Feb 5, 2025 · 0 comments
Open

Example number's length is wrong #426

ronakYudiz opened this issue Feb 5, 2025 · 0 comments

Comments

@ronakYudiz
Copy link

I am using this library in My react native project.
Max length of UAE ("AE") is 9 but when I am trying to get this number with phoneUtill?.getExampleNumber(country.cca2)?.getNationalNumber()?.toString().length
I am getting 8 number.

Moreover when checking number with isValidaNumber(), it is giving error on 8 number , so this is the difference when getting validation and getting max length.

Expected behaviour : phoneUtill?.getExampleNumber(country.cca2)?.getNationalNumber()?.toString().length has to be 9 number for AE

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

1 participant