screen-common/src/main/java/com/moral/util/RegexUtils.java
@@ -12,7 +12,7 @@ * @return 证成功返回true,验证失败返回false */ public static boolean checkAccount(String account) { String regex = "[a-zA-Z]\\w{3,19}"; String regex = "[a-zA-Z]\\w{2,19}"; return account.matches(regex); } @@ -27,7 +27,7 @@ * @return 证成功返回true,验证失败返回false */ public static boolean checkPassword(String password) { String regex = "[0-9a-zA-Z_]\\w{3,19}"; String regex = "[0-9a-zA-Z_]\\w{2,19}"; return password.matches(regex); }