From 55334da20cff4dac840c320eda1d0ca53ba27eda Mon Sep 17 00:00:00 2001
From: fwq <582742538@qq.com>
Date: 星期一, 23 九月 2024 14:26:36 +0800
Subject: [PATCH] Merge branch 'master-stander' into master-xlk

---
 src/main/java/com/hx/util/RegValidatorUtil.java |    8 ++++++--
 1 files changed, 6 insertions(+), 2 deletions(-)

diff --git a/src/main/java/com/hx/util/RegValidatorUtil.java b/src/main/java/com/hx/util/RegValidatorUtil.java
index ea51c5b..f74fb0b 100644
--- a/src/main/java/com/hx/util/RegValidatorUtil.java
+++ b/src/main/java/com/hx/util/RegValidatorUtil.java
@@ -9,7 +9,10 @@
  *
  */
 public class RegValidatorUtil {
-	
+
+	/**鎵嬫満鍙锋鍒欏垵濮嬪寲*/
+	public static Pattern pattern = Pattern.compile("^1[3-9]\\d{9}$");
+
 	/**
 	* 楠岃瘉閭
 	* 
@@ -94,7 +97,8 @@
 	 */
 	public static boolean IsHandset(String phoneNumber) {
 		if ((phoneNumber != null) && (!phoneNumber.isEmpty())) {
-			return Pattern.matches("^1[3-9]\\d{9}$", phoneNumber);
+			Matcher m = pattern.matcher(phoneNumber);
+			return m.matches();
 		}
 		return false;
 	}

--
Gitblit v1.8.0