校验正则修正

This commit is contained in:
谢思 2023-04-13 15:22:01 +08:00
parent e3abad3f46
commit 8e02184750
1 changed files with 1 additions and 1 deletions

View File

@ -251,7 +251,7 @@ function Register(props){
message: "用户名只能使用英文字母和数字"
},
{
pattern: /^\s*$/,
pattern: /^[^\s]*$/,
message: "用户名不能包含空格"
},
{