mobi / telephone_number

Phone number validation for Ruby
MIT License
385 stars 32 forks source link

Giving invalid validation for following US number #128

Open nitesh-varma opened 1 year ago

nitesh-varma commented 1 year ago

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 commented 1 year ago

@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