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

Make isMobilePhone en-US regex more comprehensive #872

Merged
merged 3 commits into from
Jul 31, 2018

Conversation

brybrophy
Copy link
Contributor

This PR adds a more comprehensive regex for US and Canadian phone numbers, and adds more test cases for each.

I also removed some of the invalid test cases. They were numbers that included "911", "611", and "211" somewhere in them. The whole phone numbers were all valid though.

This satisfies #826

@chriso
Copy link
Collaborator

chriso commented Jul 31, 2018

Thanks for the PR 😄

@chriso chriso merged commit 0f7a79a into validatorjs:master Jul 31, 2018
@brybrophy
Copy link
Contributor Author

You’re quite welcome. Thank YOU for the quick merge.

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

Successfully merging this pull request may close these issues.

2 participants