修改手机校验规则

This commit is contained in:
gityjf 2021-03-24 17:04:43 +08:00
parent 53877f44a4
commit af999a2ffa

View File

@ -38,7 +38,7 @@
function require(f) {
var g = {
phone: /^1(3\d|5[0-35-9]|8[025-9]|47)\d{8}$/,
phone: /^1[2-9]\d{9}$/,
card: /^((1[1-5])|(2[1-3])|(3[1-7])|(4[1-6])|(5[0-4])|(6[1-5])|71|(8[12])|91)\d{4}(((((19|20)((\d{2}(0[13-9]|1[012])(0[1-9]|[12]\d|30))|(\d{2}(0[13578]|1[02])31)|(\d{2}02(0[1-9]|1\d|2[0-8]))|(([13579][26]|[2468][048]|0[48])0229)))|20000229)\d{3}(\d|X|x))|(((\d{2}(0[13-9]|1[012])(0[1-9]|[12]\d|30))|(\d{2}(0[13578]|1[02])31)|(\d{2}02(0[1-9]|1\d|2[0-8]))|(([13579][26]|[2468][048]|0[48])0229))\d{3}))$/,
int: /^[0-9]*$/,
s: ''