add Text.randomPassword
This commit is contained in:
@@ -52,8 +52,8 @@ public class Regex {
|
||||
/** 用户名 (4-16 位字母、数字、下划线) */
|
||||
public static final String USERNAME = "^[a-zA-Z0-9_]{4,16}$";
|
||||
|
||||
/** 密码 (6-18 位,包含字母和数字) */
|
||||
public static final String PASSWORD = "^(?=.*[a-zA-Z])(?=.*\\d)[a-zA-Z0-9]{6,18}$";
|
||||
/** 密码 (6-18 位,包含字母和数字,允许特殊字符) */
|
||||
public static final String PASSWORD = "^(?=.*[a-zA-Z])(?=.*\\d)[a-zA-Z0-9!#$%&()*+,\\-./:;<=>?@\\[\\]\\^_`{|}~]{6,32}$";
|
||||
|
||||
/** 中文字符 */
|
||||
public static final String CHINESE_CHAR = "^[\\u4e00-\\u9fa5]+$";
|
||||
|
||||
Reference in New Issue
Block a user