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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix Japanese mobile phone number #1073

Merged
merged 2 commits into from Aug 2, 2019
Merged

fix Japanese mobile phone number #1073

merged 2 commits into from Aug 2, 2019

Conversation

yomotsu
Copy link
Contributor

@yomotsu yomotsu commented Jul 28, 2019

Seems isMobile with ja-JP is wrong. (My mobile number does not pass馃槩)
This PR is to fix isMoble with ja-JP.

Basically, Japanese mobile phone number is:
090 or 080, 070 prefix plus 4-digits numbers * 2, like 090-xxxx-xxxx

Also, 060 prefix will be available due to about depleted of 090, 080, 070.
Here is the announcement from gov (in Japanese).
http://www.soumu.go.jp/menu_news/s-news/01kiban06_02000058.html

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 the PR! 馃帀

Additional ref for validation - https://www.fakephonenumber.org/Japan_phone_number

@profnandaa profnandaa merged commit 25e84cf into validatorjs:master Aug 2, 2019
@yomotsu yomotsu deleted the fix/is-mobile-ja-jp branch October 17, 2019 17:56
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.

None yet

2 participants