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

default falsey locale to 'any' in isMobilePhone #874

Merged
merged 2 commits into from
Jul 31, 2018

Conversation

towc
Copy link
Contributor

@towc towc commented Jul 31, 2018

from #854

I thought that instead of just using 'any' if the locale isn't passed as a parameter, I'd do it for all falsey values, so you can pass opts without worrying about a fairly arbitrary 'any' string. 'any' is still valid

Copy-pasted a test from 'any' to not include arguments

@chriso
Copy link
Collaborator

chriso commented Jul 31, 2018

Thanks. Can you add a note to the README?

@towc
Copy link
Contributor Author

towc commented Jul 31, 2018

oh, right

@chriso
Copy link
Collaborator

chriso commented Jul 31, 2018

Good stuff. Thanks!

@chriso chriso merged commit d12f275 into validatorjs:master Jul 31, 2018
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