jidechao 1 month ago
parent
commit
554974c6ce
1 changed files with 1 additions and 1 deletions
  1. 1 1
      public/index.html

+ 1 - 1
public/index.html

@@ -1134,7 +1134,7 @@
                 // 验证身份证格式
                 idNumber = document.getElementById('idNumber' + i);
                 idError = document.getElementById('idNumber-error' + i);
-                if (!/^\d{17}[\dXx]$/.test(idNumber.value)) {
+                if (idNumber.value.length>10) {
                     idError.style.display = 'block';
                     isValid = false;
                 } else {