Skip to content

Commit

Permalink
Merge pull request #468 from NauxLiu/patch-1
Browse files Browse the repository at this point in the history
improve regexp zh-CN
  • Loading branch information
chriso committed Dec 28, 2015
2 parents 2fcbbdd + 8c0dab0 commit 26324b5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion validator.js
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@
var base64 = /^(?:[A-Z0-9+\/]{4})*(?:[A-Z0-9+\/]{2}==|[A-Z0-9+\/]{3}=|[A-Z0-9+\/]{4})$/i;

var phones = {
'zh-CN': /^(\+?0?86\-?)?1[345789]\d{9}$/,
'zh-CN': /^(\+?0?86\-?)?((13\d|14[57]|15[^4,\D]|17[678]|18\d)\d{8}|170[059]\d{7})$/,
'zh-TW': /^(\+?886\-?|0)?9\d{8}$/,
'en-ZA': /^(\+?27|0)\d{9}$/,
'en-AU': /^(\+?61|0)4\d{8}$/,
Expand Down

0 comments on commit 26324b5

Please sign in to comment.