Browse Source
Merge pull request #769 from cdswyda/fix/phone-validate
fix(dataVerificationCtrl.js): 更新手机号校验规则
master
Dushusir
4 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
1 additions and
1 deletions
-
src/controllers/dataVerificationCtrl.js
|
|
@ -1452,7 +1452,7 @@ const dataVerificationCtrl = { |
|
|
|
return false; |
|
|
|
} |
|
|
|
|
|
|
|
if(type2 == 'phone' && !/^[1][3,4,5,7,8][0-9]{9}$/.test(cellValue)){ |
|
|
|
if(type2 == 'phone' && !/^1[3456789]\d{9}$/.test(cellValue)){ |
|
|
|
return false; |
|
|
|
} |
|
|
|
} |
|
|
|