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

isMobilePhone for Mexico phone numbers #794

Closed
AlexisLeon opened this issue Feb 22, 2018 · 3 comments
Closed

isMobilePhone for Mexico phone numbers #794

AlexisLeon opened this issue Feb 22, 2018 · 3 comments

Comments

@AlexisLeon
Copy link

AlexisLeon commented Feb 22, 2018

I'd like to use isMobilePhone for es-MX México phone numbers.

I'm currently using .matches(/^(\+?52)(1|01)?[0-9]{2,3}\d{8}$/)

Country code -> /^(\+?52)(1|01)?
Area codes by state -> [0-9]{2,3}
The number -> \d{8}$/

@profnandaa
Copy link
Member

@AlexisLeon - Sounds good, PRs are welcome! 👍

@ftrevo
Copy link
Contributor

ftrevo commented Aug 15, 2018

@AlexisLeon can you please validate if my pull request will do the trick?

@chriso
Copy link
Collaborator

chriso commented Aug 15, 2018

Fixed by #879.

@chriso chriso closed this as completed Aug 15, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants