新增 TODO

pull/1/head
ZhouXY108 2024-11-19 23:10:54 +08:00
parent fe72ddb784
commit 5dbaba3c5a
2 changed files with 8 additions and 2 deletions

View File

@ -25,7 +25,9 @@ import java.util.regex.Pattern;
*/ */
public final class PatternConsts { public final class PatternConsts {
public static final Pattern DATE = Pattern.compile(RegexConsts.DATE); // TODO 【添加】 新增身份证等正则常量
public static final Pattern DATE = Pattern.compile(RegexConsts.DATE); // TODO 【优化】 修改为对应的日期格式名称
public static final Pattern PASSWORD = Pattern.compile(RegexConsts.PASSWORD); public static final Pattern PASSWORD = Pattern.compile(RegexConsts.PASSWORD);

View File

@ -23,7 +23,11 @@ package xyz.zhouxy.plusone.commons.constant;
*/ */
public final class RegexConsts { public final class RegexConsts {
public static final String DATE = "^\\d{4}-\\d{2}-\\d{2}"; // TODO 【优化】 根据需要添加 group
// TODO 【添加】 新增身份证等正则常量
public static final String DATE = "^\\d{4}-\\d{2}-\\d{2}"; // TODO 【优化】 修改为对应的日期格式名称
public static final String PASSWORD = "^(?=.*\\d)(?=.*[a-z])(?=.*[A-Z])[\\w\\\\!#$%&'*\\+\\-/=?^`{|}~@\\(\\)\\[\\]\",\\.;':><]{8,32}$"; public static final String PASSWORD = "^(?=.*\\d)(?=.*[a-z])(?=.*[A-Z])[\\w\\\\!#$%&'*\\+\\-/=?^`{|}~@\\(\\)\\[\\]\",\\.;':><]{8,32}$";