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

bug(isMobilePhone): update regex for de-DE #1391

Conversation

heanzyzabala
Copy link
Contributor

@heanzyzabala heanzyzabala commented Jul 25, 2020

I loosened the regex for de-DE to support the unhandled value given in the issue.
The changes prompts some of the invalid values to pass, but I added additional tests to backup the change.

Checklist

  • [] PR contains only changes related; no stray files, etc.
  • [] README updated (where applicable)
  • [] Tests written (where applicable)

Copy link
Member

@profnandaa profnandaa left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Thanks for your contrib! 🎉

@profnandaa profnandaa merged commit f67a57f into validatorjs:master Jul 25, 2020
@profnandaa profnandaa mentioned this pull request Sep 18, 2020
@thomaschaaf
Copy link
Contributor

Hello! This PR is incorrect.. as you can see here +4930 is landline..

https://libphonenumber.appspot.com/phonenumberparser?number=%2B4930405044550

https://en.wikipedia.org/wiki/Telephone_numbers_in_Germany#Non-geographic_numbering mobile phone numbers must start with a 15, 16 or 17

thomaschaaf added a commit to thomaschaaf/validator.js that referenced this pull request Nov 15, 2021
profnandaa pushed a commit that referenced this pull request Nov 17, 2021
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.

3 participants