fix: 修改 email 的正则常量

1. fix: Email 的 Pattern 不区分大小写
2. docs: 标注正则表达式的出处
This commit is contained in:
2025-03-22 17:45:02 +08:00
parent e989ad8f60
commit 4a620e5a2b
2 changed files with 4 additions and 1 deletions

View File

@@ -61,7 +61,7 @@ public final class PatternConsts {
*
* @see RegexConsts#EMAIL
*/
public static final Pattern EMAIL = Pattern.compile(RegexConsts.EMAIL);
public static final Pattern EMAIL = Pattern.compile(RegexConsts.EMAIL, Pattern.CASE_INSENSITIVE);
/**
* 中国大陆手机号