fix: 修改身份证规则
This commit is contained in:
@@ -147,7 +147,7 @@ const onSubmit = mergeStep(async () => {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!/^\d{17}[\d|x]$/.test(form.value.cardnum)) {
|
if (!/^\d{17}[\d|x]$/i.test(form.value.cardnum)) {
|
||||||
await showModal('身份证号格式错误')
|
await showModal('身份证号格式错误')
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user