Skip to content

Commit

Permalink
fix: 修改学号的正则匹配规则 (#125)
Browse files Browse the repository at this point in the history
Co-authored-by: lay <[email protected]>
  • Loading branch information
NJUPTlay and lay authored Oct 22, 2024
1 parent 7ca432e commit 1d0d263
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pages/register/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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: '请输入正确的学号',
},
],
Expand Down

0 comments on commit 1d0d263

Please sign in to comment.