用户密码正则表达式bug

This commit is contained in:
2023-08-21 09:09:31 +08:00
parent 70b881c4af
commit ca3ec2d82f

View File

@@ -15,7 +15,7 @@ public interface PatternRegex {
/** /**
* 密码需要包含特殊字符字母数字长度为8-16 * 密码需要包含特殊字符字母数字长度为8-16
*/ */
String PASSWORD_REGEX = "^(?=.*[a-zA-Z])(?=.*\\d)(?=.*[=[]{}.,。、@#_!$%^&*()?<>/|~,\\-+]).{8,16}$"; String PASSWORD_REGEX = "^(?=.*[a-zA-Z])(?=.*\\d)(?=.*[\\=\\[\\]\\{\\}\\.\\,\\\\\\@\\#\\_\\!\\$\\%\\^\\&\\*\\(\\)\\?\\<\\>\\/\\|\\~,\\-\\+]).{8,16}$";
/** /**
* 手机的密码 * 手机的密码