phonelib
phonelib copied to clipboard
Missing geocoding data for country calling code
Phone numbers with area code '227' are not valid:
phone = "227-220-1449"
Phonelib.parse(phone).valid?
returns false
I tried updating data as suggested in https://github.com/daddyz/phonelib/issues/150, but still says the number is not valid:
2.4.1 :003 > Phonelib.valid? "2272383291"
=> false
2.4.1 :004 > Phonelib.valid_for_country? "2272383291", "US"
=> false
@sheena-gygax Hi, original google libphonenumber does not recognize 227. Their regex says 22[03-589] which does not include 227. You can check it here and open an issue for them. Once they will implement this change, I will be able to update the data and phone will be validated as valid.