Skip to content
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

using isMobilePhone with en-US locale for validating canadian phones #524

Closed
hbakhtiyor opened this issue Apr 11, 2016 · 1 comment
Closed

Comments

@hbakhtiyor
Copy link

https://en.wikipedia.org/wiki/Telephone_numbers_in_Canada

can i use the locale for canadian phones?, since en-CA locale doesn't exist, and looks like the same with US format

@chriso
Copy link
Collaborator

chriso commented Apr 11, 2016

All that's needed is an alias in isMobilePhone.js:

phones['en-CA'] = phones['en-US'];

@chriso chriso closed this as completed in e61cdce May 28, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants