update 优化新增修改菜单权限字符校验

This commit is contained in:
AprilWind
2024-03-09 17:37:48 +08:00
parent c9cceb9e2d
commit bb59cb204d
2 changed files with 8 additions and 1 deletions

View File

@ -16,6 +16,11 @@ public interface RegexConstants extends RegexPool {
*/
public static final String DICTIONARY_TYPE = "^[a-z][a-z0-9_]*$";
/**
* 权限标识必须符合 tool:build:list 格式,或者空字符串
*/
public static final String PERMISSION_STRING = "^(|^[a-zA-Z0-9_]+:[a-zA-Z0-9_]+:[a-zA-Z0-9_]+)$";
/**
* 身份证号码后6位
*/