-
-
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
Edit Chinese MobilePhone Verifying regular. #801
Conversation
@@ -70,7 +70,7 @@ var phones = { | |||
'tr-TR': /^(\+?90|0)?5\d{9}$/, | |||
'uk-UA': /^(\+?38|8)?0\d{9}$/, | |||
'vi-VN': /^(\+?84|0)?((1(2([0-9])|6([2-9])|88|99))|(9((?!5)[0-9])))([0-9]{7})$/, | |||
'zh-CN': /^(\+?0?86\-?)?1[3456789]\d{9}$/, | |||
'zh-CN': /^((\+|00)86)?1([358][0-9]|4[579]|66|7[0135678]|9[89])[0-9]{8}$/, |
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.
Did you just change to a more specific validator here, more like a subset of the previous one?
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.
This rule is more stringent, thank you.
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.
Strict verification is not necessary. China's phone numbers are increasing very fast, and new numbers will be added every once in a while. The use of strict verification will be difficult to maintain.
This appears to be more strict than the existing version. Can you provide a source for the pattern? |
I'm going to merge this one, as it appears to fix one of the reported bugs: #866 |
You made a wise choice. Thank you! |
I re - submitted one, you can merge it to master branch. Thank you very much!