fix: 密码校验格式由后端处理

This commit is contained in:
TsMask
2025-03-27 15:54:51 +08:00
parent 0ff899b40b
commit cfc56ca4ea
3 changed files with 12 additions and 10 deletions

View File

@@ -27,14 +27,15 @@ export const regExpUserName = /^[A-Za-z0-9]{6,}$/;
* 有效密码格式
*
* 密码至少包含大小写字母、数字、特殊符号且不少于6位
* /^(?![A-Za-z0-9]+$)(?![a-z0-9\W]+$)(?![A-Za-z\W]+$)(?![A-Z0-9\W]+$)[a-zA-Z0-9\W]{6,}$/
*/
export const regExpPasswd =
/^(?![A-Za-z0-9]+$)(?![a-z0-9\W]+$)(?![A-Za-z\W]+$)(?![A-Z0-9\W]+$)[a-zA-Z0-9\W]{6,}$/;
export const regExpPasswd = /^.{6,}$/;
/**
* 有效手机号格式
* /^1[3|4|5|6|7|8|9][0-9]\d{8}$/
*/
export const regExpMobile = /^.{3,}$/; // /^1[3|4|5|6|7|8|9][0-9]\d{8}$/;
export const regExpMobile = /^.{3,}$/;
/**
* 有效邮箱格式
@@ -46,8 +47,9 @@ export const regExpEmail =
* 有效用户昵称格式
*
* 用户昵称只能包含字母、数字、中文和下划线且不少于2位
* /^[\w\u4e00-\u9fa5-]{2,}$/
*/
export const regExpNick = /^.{2,}$/; // /^[\w\u4e00-\u9fa5-]{2,}$/;
export const regExpNick = /^.{2,}$/;
/**
* 是否为http(s)://开头