-
Notifications
You must be signed in to change notification settings - Fork 131
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
[Question] Allow only phone numbers with international prefix #195
Comments
I made some experiments... At first I thought that using the normal validation did the job and refused numbers without an international prefix. Then I noticed that if the national number starts with something that seems an international prefix, then the number is accepted. Example:
Second example seems a bug to me... doesn't need to have a |
In latest version "442511234" is not valid, but I will keep this as enhancement to expect for e164 only in validator for certain params. Thanks for reporting |
I have a Rails application that allows users to enter their phone number. Users are from different countries and I don't know the country for each user.
Is it possible to force users to enter only full phone numbers that include the country code?
This is especially useful for Whatsapp which requires "a full phone number in international format".
The text was updated successfully, but these errors were encountered: