-
Notifications
You must be signed in to change notification settings - Fork 212
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
isValidPhoneNumber and parsePhoneNumber validate the number incorrectly #444
Comments
What's the exact issue? |
|
Provide an online demo illustrating the issue. |
And that online demo should use the "max" metadata |
Same problem 2023-05-25.14.25.28.mov |
Polish numbers has 9 digits, not 7. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
If you call
isValidPhoneNumber("+485555555")
, it returns that it is a valid Polish number.If you call
parsePhoneNumber("+485555555")
, then the result:Actually this is not true because 5555555 is not a Polish phone number. Exactly the same problem with the combination +481111111
Version
"libphonenumber-js": "^1.10.30",
The text was updated successfully, but these errors were encountered: