fix: 有效密码格式

This commit is contained in:
TsMask
2023-11-07 14:50:21 +08:00
parent 3297d1f00b
commit 50cef777d5

View File

@@ -28,8 +28,7 @@ export const regExpUserName = /^[a-zA-Z][a-z0-9A-Z]{5,}$/;
*
* 密码至少包含大小写字母、数字、特殊符号且不少于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 = /\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,}$/;
/**
* 有效手机号格式