uView icon indicating copy to clipboard operation
uView copied to clipboard

验证身份证号码当月份为00时也可用过正则验证

Open hello-xiaoxin opened this issue 3 years ago • 1 comments

function idCard(value) { return /^[1-9]\d{5}[1-9]\d{3}((0\d)|(1[0-2]))(([0|1|2]\d)|3[0-1])\d{3}([0-9]|X)$/.test( value) } (0\d)应该为(0[1-9])

hello-xiaoxin avatar Jun 24 '21 06:06 hello-xiaoxin

当 日 为00时也可以用过验证

hello-xiaoxin avatar Jun 24 '21 06:06 hello-xiaoxin