fix: 有效账号格式不少于5位

This commit is contained in:
TsMask
2023-11-07 16:43:57 +08:00
parent 50cef777d5
commit 21c702ce9b
3 changed files with 493 additions and 73 deletions

View File

@@ -21,7 +21,7 @@ export const regExpPort =
*
* 账号不能以数字开头可包含大写小写字母数字且不少于5位
*/
export const regExpUserName = /^[a-zA-Z][a-z0-9A-Z]{5,}$/;
export const regExpUserName = /^[a-zA-Z][a-z0-9A-Z]{4,}$/;
/**
* 有效密码格式