260408_01_ENH: normalizeEmail 변경

This commit is contained in:
2026-04-08 09:46:50 +09:00
parent 687a2ebf82
commit 5a8e26e6cf
2 changed files with 7 additions and 3 deletions

View File

@@ -4,7 +4,7 @@ plugins {
}
//버전 변경은 여기서
def commonVer = "beta.1.1.14"
def commonVer = "beta.1.1.15"
group = 'com.kri.common'
version = commonVer

View File

@@ -32,7 +32,11 @@ public final class StringUtil {
public static String normalizeEmail(String raw) {
String s = normalizeBlank(raw);
return s == null ? null : s.toLowerCase();
if (s == null) {
return null;
}
String email = s.toLowerCase();
return email.matches("^[^@\\s]+@[^@\\s]+\\.[^@\\s]+$") ? email : null;
}
public static String normalizeOnlyNumber(String raw) {
@@ -63,4 +67,4 @@ public final class StringUtil {
}
return s.matches("^[^@\\s]+@[^@\\s]+\\.[^@\\s]+$");
}
}
}