fix
This commit is contained in:
@@ -325,7 +325,7 @@ export function verifyIdCardAll(val: string) {
|
||||
const macaoIdCard = /^[1-9]\d{0,6}$/;
|
||||
// 台湾身份证:1个字母+9位数字
|
||||
const taiwanIdCard = /^[A-Z]\d{9}$/;
|
||||
|
||||
|
||||
// 只要匹配其中一种即可
|
||||
if (mainlandIdCard.test(val) || hkIdCard.test(val) || macaoIdCard.test(val) || taiwanIdCard.test(val)) {
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user