Open tsaifi9 opened 2 years ago
Running into an issue with validating numbers from Virgin Islands
Problem:
country
US
Expectation:
VI
Setup:
virgin_islands_phone_number = "+13407759575" phone = MiniPhone.parse(virgin_islands_phone_number) phone.valid? # => false p.country # => "US" MiniPhone.valid_for_country?(virgin_islands_phone_number, 'VI') # true
I think this is an issue with libphonenumber returning +1 as country code. See https://libphonenumber.appspot.com/phonenumberparser?number=%2B13407759575
Running into an issue with validating numbers from Virgin Islands
Problem:
country
is returningUS
for Virgin IslandsExpectation:
country
should returnVI
for Virgin IslandsSetup: