-
-
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
Update the jp mobile phone validator #738
Conversation
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.
test/validators.js
Outdated
@@ -3574,6 +3565,17 @@ describe('Validators', function () { | |||
'0 1234 5689', | |||
'16 1234 5689', | |||
'03_1234_5689', | |||
'0312345678', | |||
'0721234567', | |||
'08002345678' |
There was a problem hiding this comment.
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.
test/validators.js
Outdated
@@ -1,4 +1,4 @@ | |||
var validator = require('../index'), | |||
var validator = require('../index'), |
There was a problem hiding this comment.
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
Thanks! |
Refer from
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.