Skip to content

Commit

Permalink
Merge pull request #523 from sunfuze/adjust/phone-zh_CN
Browse files Browse the repository at this point in the history
adjust: in China, phone number increase  very quickly.
  • Loading branch information
chriso committed Apr 9, 2016
2 parents 449bbbf + c1fcbb6 commit ae14b7d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/isMobilePhone.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ const phones = {
'ru-RU': /^(\+?7|8)?9\d{9}$/,
'tr-TR': /^(\+?90|0)?5\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\-?)?((13\d|14[57]|15[^4,\D]|17[678]|18\d)\d{8}|170[059]\d{7})$/,
'zh-CN': /^(\+?0?86\-?)?1[345789]\d{9}$/,
'zh-TW': /^(\+?886\-?|0)?9\d{8}$/,
};
/* eslint-enable max-len */
Expand Down

0 comments on commit ae14b7d

Please sign in to comment.