fix: 修改身份证规则

This commit is contained in:
anonymous
2025-01-15 09:59:52 +08:00
parent d9e889c65c
commit 250a675cee
4 changed files with 1 additions and 2 deletions
+1 -1
View File
@@ -79,7 +79,7 @@ const onSubmit = async () => {
await showModal('请填写完整信息')
return
}
if (!/^\d{17}[\d|x]$/.test(form.value.cardnum)) {
if (!/^\d{17}[\d|x]$/i.test(form.value.cardnum)) {
await showModal('身份证号格式错误')
return
}