Skip to content

Commit 9ee1b6b

Browse files
authored
fix(isMobilePhone): update china zh-CN locale (#1642)
1 parent b82f4f2 commit 9ee1b6b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/lib/isMobilePhone.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ const phones = {
112112
'uk-UA': /^(\+?38|8)?0\d{9}$/,
113113
'uz-UZ': /^(\+?998)?(6[125-79]|7[1-69]|88|9\d)\d{7}$/,
114114
'vi-VN': /^(\+?84|0)((3([2-9]))|(5([2689]))|(7([0|6-9]))|(8([1-9]))|(9([0-9])))([0-9]{7})$/,
115-
'zh-CN': /^((\+|00)86)?1([3568][0-9]|4[579]|6[67]|7[01235678]|9[012356789])[0-9]{8}$/,
115+
'zh-CN': /^((\+|00)86)?1([3456789][0-9]|4[579]|6[67]|7[01235678]|9[012356789])[0-9]{8}$/,
116116
'zh-TW': /^(\+?886\-?|0)?9\d{8}$/,
117117
};
118118
/* eslint-enable max-len */

0 commit comments

Comments
 (0)