update 优化 去除无用标识符

This commit is contained in:
疯狂的狮子Li 2024-03-28 14:51:52 +08:00
parent ed43774129
commit 812d9eb0e8

View File

@ -14,41 +14,41 @@ public interface RegexConstants extends RegexPool {
/** /**
* 字典类型必须以字母开头且只能为小写字母数字下滑线 * 字典类型必须以字母开头且只能为小写字母数字下滑线
*/ */
public static final String DICTIONARY_TYPE = "^[a-z][a-z0-9_]*$"; String DICTIONARY_TYPE = "^[a-z][a-z0-9_]*$";
/** /**
* 权限标识必须符合 tool:build:list 格式或者空字符串 * 权限标识必须符合 tool:build:list 格式或者空字符串
*/ */
public static final String PERMISSION_STRING = "^(|^[a-zA-Z0-9_]+:[a-zA-Z0-9_]+:[a-zA-Z0-9_]+)$"; String PERMISSION_STRING = "^(|^[a-zA-Z0-9_]+:[a-zA-Z0-9_]+:[a-zA-Z0-9_]+)$";
/** /**
* 身份证号码后6位 * 身份证号码后6位
*/ */
public static final String ID_CARD_LAST_6 = "^(([0-2][1-9])|10|20|30|31)\\d{3}[0-9Xx]$"; String ID_CARD_LAST_6 = "^(([0-2][1-9])|10|20|30|31)\\d{3}[0-9Xx]$";
/** /**
* QQ号码 * QQ号码
*/ */
public static final String QQ_NUMBER = "^[1-9][0-9]\\d{4,9}$"; String QQ_NUMBER = "^[1-9][0-9]\\d{4,9}$";
/** /**
* 邮政编码 * 邮政编码
*/ */
public static final String POSTAL_CODE = "^[1-9]\\d{5}$"; String POSTAL_CODE = "^[1-9]\\d{5}$";
/** /**
* 注册账号 * 注册账号
*/ */
public static final String ACCOUNT = "^[a-zA-Z][a-zA-Z0-9_]{4,15}$"; String ACCOUNT = "^[a-zA-Z][a-zA-Z0-9_]{4,15}$";
/** /**
* 密码包含至少8个字符包括大写字母小写字母数字和特殊字符 * 密码包含至少8个字符包括大写字母小写字母数字和特殊字符
*/ */
public static final String PASSWORD = "^(?=.*[a-z])(?=.*[A-Z])(?=.*\\d)(?=.*[@$!%*?&])[A-Za-z\\d@$!%*?&]{8,}$"; String PASSWORD = "^(?=.*[a-z])(?=.*[A-Z])(?=.*\\d)(?=.*[@$!%*?&])[A-Za-z\\d@$!%*?&]{8,}$";
/** /**
* 通用状态0表示正常1表示停用 * 通用状态0表示正常1表示停用
*/ */
public static final String STATUS = "^[01]$"; String STATUS = "^[01]$";
} }