li.shaoyi %!s(int64=2) %!d(string=hai) anos
pai
achega
aff3873bdc
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/constants/regex.ts

+ 1 - 1
src/constants/regex.ts

@@ -27,7 +27,7 @@ export const validateRules = {
         message: '身份证号码不合规',
     },
     bankcardno: {
-        validate: (val: string) => /^([1-9]{1})(\d{15}|\d{16}|\d{18})$/.test(val),
+        validate: (val: string) => /^([1-9]{1})(\d{11}|\d{15}|\d{16}|\d{17}|\d{18})$/.test(val),
         message: '银行卡号码不合规',
     }
 }