jinpengyong
2021-03-23 9ec895d7754fdfd4918fab69cc220c0d814c41f7
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);
    }