Browse Source

Merge pull request #769 from cdswyda/fix/phone-validate

fix(dataVerificationCtrl.js): 更新手机号校验规则
master
Dushusir 4 years ago
committed by GitHub
parent
commit
8e66d6a185
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      src/controllers/dataVerificationCtrl.js

2
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;
}
}

Loading…
Cancel
Save