From 553c5909b6c27f0a5088e1b8121249dfe67fa1fd Mon Sep 17 00:00:00 2001 From: wenc000 <450292408@qq.com> Date: Tue, 24 Dec 2019 23:55:05 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=AD=A3=E5=88=99=E5=B7=A5?= =?UTF-8?q?=E5=85=B7=E7=B1=BB=E5=8F=91=E7=8E=B0=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/main/java/com/cm/common/utils/RegexUtil.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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(); } /**