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

Add Swedish locale for isMobilePhone #835

Merged
merged 1 commit into from
May 22, 2018
Merged

Conversation

InhumanSoul
Copy link
Contributor

Reference (in Swedish, couldn't find in English)

Since there are no rules on exactly how to format a Swedish mobile number, the regexp pattern is quite relaxed, allowing dashes or spaces between all digits (but no consecutive dashes/spaces).

This fixes #804

@chriso
Copy link
Collaborator

chriso commented May 22, 2018

Thanks for the PR 😄

@chriso chriso merged commit 8725ab2 into validatorjs:master May 22, 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.

IsMobilePhone does not include swedish mobile code
2 participants