This commit is contained in:
caozehui
2024-12-03 13:54:29 +08:00
parent bdaef58706
commit d495083995

View File

@@ -79,9 +79,14 @@ public interface PatternRegex {
String DEPT_NAME_REGEX = "^[\\u4e00-\\u9fa5]{1,20}$";
/**
* 字典名称包括中文、数字、字母、罗马数字、括号以及点号
* 字典名称包括中文、数字、字母、罗马数字、括号以及点号、百分号
*/
String DIC_REGEX = "^[\\w\\u4E00-\\u9FA5()_/、/, /\\- ]+\\.?[\\w\\u4E00-\\u9FA5()I II III IV V /]{0,125}$";
String DICT_NAME_REGEX = "[\\w\\u4E00-\\u9FA5()_/、/, /\\-\\%]+\\.?[\\w\\u4E00-\\u9FA5()I II III IV V /]{0,63}$";
/**
* 字典编码包括中文、数字、字母、罗马数字、括号以及点号、百分号
*/
String DICT_CODE_REGEX = "[\\w\\u4E00-\\u9FA5()_/、/, /\\-\\%]+\\.?[\\w\\u4E00-\\u9FA5()I II III IV V /]{0,29}$";
/**
* 密码有效期1-3月