fix: 用户账号规则修改允许数字开头至少6位

This commit is contained in:
TsMask committed 2024-06-20 10:16:04 +08:00
1 parent 68cbbe7133
commit 57f575aa84
4 files changed
+6 -6

No files matched your search

+3 -3
View File
@@ -19,9 +19,9 @@ export const regExpPort =
/**
* 有效账号格式
*
* 账号不能以数字开头,可包含大写小写字母,数字,且不少于5位
* 账号只能包含大写字母、小写字母和数字的字符串,长度至少为6位
*/
export const regExpUserName = /^[a-zA-Z][a-z0-9A-Z]{4,}$/;
export const regExpUserName = /^[A-Za-z0-9]{6,}$/;
/**
* 有效密码格式
@@ -91,7 +91,7 @@ export function validURL(str: string) {
} catch (error) {
return false;
}
if (u.host.startsWith('.')) {
return false;
}