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

Update the jp mobile phone validator #738

Merged
merged 3 commits into from
Oct 25, 2017
Merged

Conversation

PuHsiu
Copy link
Contributor

@PuHsiu PuHsiu commented Oct 23, 2017

Refer from

  1. https://ja.wikipedia.org/wiki/日本の電話番号#0A0_.E7.89.B9.E7.95.AA
  2. http://www.soumu.go.jp/main_sosiki/joho_tsusin/top/tel_number/number_shitei.html

Japan's mobile number (include 攜帯電話 and PHS) will begin with 070, 080, 090, and all of them didn't apply "0" as 4-th number.

Refer from
1. https://ja.wikipedia.org/wiki/日本の電話番号#0A0_.E7.89.B9.E7.95.AA
2.
http://www.soumu.go.jp/main_sosiki/joho_tsusin/top/tel_number/number_shitei.html
Japan's mobile number (include 攜帯電話 and PHS) will begin with 070, 080,
090, and all of them didn't apply "0" as 4-th number.
@@ -3574,6 +3565,17 @@ describe('Validators', function () {
'0 1234 5689',
'16 1234 5689',
'03_1234_5689',
'0312345678',
'0721234567',
'08002345678'
Copy link
Collaborator

Choose a reason for hiding this comment

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

You're missing a trailing comma here. See the test log.

@@ -1,4 +1,4 @@
var validator = require('../index'),
var validator = require('../index'),
Copy link
Collaborator

Choose a reason for hiding this comment

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

Can you remove the Unicode BOM you added here? See https://travis-ci.org/chriso/validator.js/jobs/292413822

@chriso
Copy link
Collaborator

chriso commented Oct 25, 2017

Thanks!

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