li.shaoyi 2 years ago
parent
commit
aff3873bdc
1 changed files with 1 additions and 1 deletions
  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: '银行卡号码不合规',
     }
 }