diff --git a/src/pages/register/index.tsx b/src/pages/register/index.tsx index 432c0fe..116c5a6 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})/, + 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})/, message: '请输入正确的学号', }, ],