【修改】 修改手机号正则

This commit is contained in:
fengachen
2022-01-19 10:49:13 +08:00
parent a2faec02a7
commit cc7ceb4248
+3 -1
View File
@@ -33,9 +33,11 @@ export function passwordReg(s) {
/**
* 手机号
*
* /^((13[0-9])|(14[579])|(15([0-3]|[5-9]))|(17[0135678])|(18[0-9])|(19[8|9])|(16[6]))\d{8}$/
* */
export function phoneReg(s) {
return /^((13[0-9])|(14[579])|(15([0-3]|[5-9]))|(17[0135678])|(18[0-9])|(19[8|9])|(16[6]))\d{8}$/.test(s)
return /^[1][3,4,5,6,7,8,9][0-9]{9}$/.test(s)
}
/**