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

Giving invalid validation for following US number #128

Open
nitesh-varma opened this issue Jun 21, 2023 · 1 comment
Open

Giving invalid validation for following US number #128

nitesh-varma opened this issue Jun 21, 2023 · 1 comment

Comments

@nitesh-varma
Copy link

phone_number = '(787) 402-9077'

TelephoneNumber.parse(phone_number, :us).valid?
=> false

But provided phone number is correct. Are there any new formats needs to be added in this gem?

@andythomnz
Copy link

@nitesh-varma - The metadata in this gem is taken from https://github.com/google/libphonenumber

According to the latest metadata on libphonenumber, the phone number you provided is valid, so looks like we should wait for the updated metadata to be applied to this gem

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