From 1d0d2630d5c0a50c68fc75ef0478acab69d0c907 Mon Sep 17 00:00:00 2001 From: Lay <122708836+NJUPTlay@users.noreply.github.com> Date: Tue, 22 Oct 2024 14:16:48 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E6=94=B9=E5=AD=A6=E5=8F=B7?= =?UTF-8?q?=E7=9A=84=E6=AD=A3=E5=88=99=E5=8C=B9=E9=85=8D=E8=A7=84=E5=88=99?= =?UTF-8?q?=20(#125)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: lay --- src/pages/register/index.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pages/register/index.tsx b/src/pages/register/index.tsx index 1ce6d9e..9989676 100644 --- a/src/pages/register/index.tsx +++ b/src/pages/register/index.tsx @@ -367,7 +367,7 @@ function Register() { required: true, rules: [ { - pattern: /^([BPQF](1[89]|2[0-6])(0[0-9]|1[0-7])([0-2]\d|3[01])\d{2}|\d{11})|([0-9]{10})/, + pattern: /^([BPQF](1[89]|2[0-6])(0[0-9]|1[0-9])([0-2]\d|3[01])\d{2}|\d{11})|([0-9]{10})$/, message: '请输入正确的学号', }, ],