From e91f02d23ae8ed7992117a18a2eb49679de76f83 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=96=AF=E7=8B=82=E7=9A=84=E7=8B=AE=E5=AD=90Li?= <15040126243@163.com> Date: Thu, 28 Mar 2024 14:52:45 +0800 Subject: [PATCH] =?UTF-8?q?update=20=E4=BC=98=E5=8C=96=20=E5=8E=BB?= =?UTF-8?q?=E9=99=A4=E6=97=A0=E7=94=A8=E6=A0=87=E8=AF=86=E7=AC=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../common/core/constant/RegexConstants.java | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/ruoyi-common/ruoyi-common-core/src/main/java/org/dromara/common/core/constant/RegexConstants.java b/ruoyi-common/ruoyi-common-core/src/main/java/org/dromara/common/core/constant/RegexConstants.java index 083bcd60..77eed8c0 100644 --- a/ruoyi-common/ruoyi-common-core/src/main/java/org/dromara/common/core/constant/RegexConstants.java +++ b/ruoyi-common/ruoyi-common-core/src/main/java/org/dromara/common/core/constant/RegexConstants.java @@ -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 格式,或者空字符串 */ - 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位) */ - 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号码 */ - 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个字符,包括大写字母、小写字母、数字和特殊字符 */ - 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表示停用) */ - public static final String STATUS = "^[01]$"; + String STATUS = "^[01]$"; }