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: add option for strictMode #769

Merged
merged 1 commit into from
Jan 30, 2018

Conversation

profnandaa
Copy link
Member

This commit adds an option on isMobilePhone to allow for strict
strict checking of mobile phone numbers, i.e. must start with
'+'

fixes #741

@profnandaa
Copy link
Member Author

Will fix the m/c.

This commit adds an option on isMobilePhone to allow for strict
strict checking of mobile phone numbers, i.e. must start with
'+<country-code>'

fixes validatorjs#741
@profnandaa
Copy link
Member Author

@chriso - fixed the m/c and added a tiny step on the contribution instructions (README). I think after step 5 (fixing of any merge conflicts), someone is supposed to run the tests again and make sure that all is okay (and builds are run too) before pushing.

@chriso
Copy link
Collaborator

chriso commented Jan 30, 2018

Great, thanks @profnandaa! 😄

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.

How to validate country code is always on mobile phone?
2 participants