【修改】修改密码提示语长度

This commit is contained in:
fengachen
2022-03-28 19:10:23 +08:00
parent fc2caa67ff
commit c982d323fb
6 changed files with 11 additions and 11 deletions
+1 -1
View File
@@ -27,7 +27,7 @@ export function isURL(s) {
/**
* 密码
* message: 密码长度至少8位,并包括数字、小写字母、大写字母和特殊符号4类
* message: 密码至少八位,需包含大小写字母、数字、特殊符号
*/
export function passwordReg(s) {
return /^(?=.*[a-z])(?=.*[A-Z])(?=.*\d)(?=.*[~!@#$%^&*()_+`\-={}:";'<>?,./]).{8,30}$/.test(s)