Browse Source

应该是常量

hanshuai 5 years ago
parent
commit
df92485ade
1 changed files with 1 additions and 1 deletions
  1. 1 1
      hutool-core/src/main/java/cn/hutool/core/util/PhoneUtil.java

+ 1 - 1
hutool-core/src/main/java/cn/hutool/core/util/PhoneUtil.java

@@ -17,7 +17,7 @@ public class PhoneUtil {
 	/**
 	/**
 	 * 座机号码
 	 * 座机号码
 	 */
 	 */
-	private static Pattern TEL = Pattern.compile("0\\d{2,3}-[1-9]\\d{6,7}");
+	private static final Pattern TEL = Pattern.compile("0\\d{2,3}-[1-9]\\d{6,7}");
 
 
 	/**
 	/**
 	 * 验证是否为手机号码(中国)
 	 * 验证是否为手机号码(中国)