We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
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
The text was updated successfully, but these errors were encountered:
I think this is an issue with libphonenumber returning +1 as country code. See https://libphonenumber.appspot.com/phonenumberparser?number=%2B13407759575
Sorry, something went wrong.
No branches or pull requests
Running into an issue with validating numbers from Virgin Islands
Problem:
country
is returningUS
for Virgin IslandsExpectation:
country
should returnVI
for Virgin IslandsSetup:
The text was updated successfully, but these errors were encountered: