-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
Accepting array of locales for mobile phone validation #742
Conversation
Thanks for the PR. Can you add some test cases and also update the README? |
@vipul-21 Could you consider using https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/some rather than old way "for in" :D? |
Sure. Will update the PR with the suggested changes. |
@vipul-21 - Ping! |
Closing the pull request for the time being. Will open it again after updating the code. |
PR updated as suggested. |
Array of locales can be accepted for mobile phone validation so that only few country codes are being validated and not all.