diff --git a/cloud-common/src/main/java/com/cm/common/utils/RegexUtil.java b/cloud-common/src/main/java/com/cm/common/utils/RegexUtil.java index 9cadf14..5f201b6 100644 --- a/cloud-common/src/main/java/com/cm/common/utils/RegexUtil.java +++ b/cloud-common/src/main/java/com/cm/common/utils/RegexUtil.java @@ -107,7 +107,7 @@ public class RegexUtil { * @return */ public static boolean isEmail(String input) { - return PATTERN_PHONE.matcher(input).matches(); + return PATTERN_EMAIL.matcher(input).matches(); } /** @@ -117,7 +117,7 @@ public class RegexUtil { * @return */ public static boolean isUrl(String input) { - return PATTERN_PHONE.matcher(input).matches(); + return PATTERN_URL.matcher(input).matches(); } /** @@ -127,7 +127,7 @@ public class RegexUtil { * @return */ public static boolean isDate(String input) { - return PATTERN_PHONE.matcher(input).matches(); + return PATTERN_DATE.matcher(input).matches(); } /** @@ -137,7 +137,7 @@ public class RegexUtil { * @return */ public static boolean isIdentity(String input) { - return PATTERN_PHONE.matcher(input).matches(); + return PATTERN_IDENTITY.matcher(input).matches(); } /**