From 9c37fa04143c120be14e64d2ed8d0aa09f3dc8f4 Mon Sep 17 00:00:00 2001 From: aixianling Date: Tue, 25 Apr 2023 14:05:52 +0800 Subject: [PATCH] =?UTF-8?q?=E6=AD=A3=E5=88=99=E5=BC=8F=E5=B7=A5=E5=85=B7?= =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E8=BA=AB=E4=BB=BD=E8=AF=81=E6=AD=A3=E5=88=99?= =?UTF-8?q?=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ui/lib/js/regular.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ui/lib/js/regular.js b/ui/lib/js/regular.js index b85a6935..5e919d00 100644 --- a/ui/lib/js/regular.js +++ b/ui/lib/js/regular.js @@ -11,5 +11,6 @@ export default { }, zh: /^[\u4e00-\u9fa5]+$/, email: /^\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*$/, - ip: /((?:(?:25[0-5]|2[0-4]\\d|[01]?\\d?\\d)\\.){3}(?:25[0-5]|2[0-4]\\d|[01]?\\d?\\d))/ + ip: /((?:(?:25[0-5]|2[0-4]\\d|[01]?\\d?\\d)\\.){3}(?:25[0-5]|2[0-4]\\d|[01]?\\d?\\d))/, + idNumber: /^[1-9]\d{5}(19\d{2}|20[0-2]\d)(0[1-9]|1[0-2])(0[1-9]|[1-2][0-9]|3[0-1])\d{3}([0-9xX])$/ }