应该是常量

This commit is contained in:
hanshuai 2020-09-07 15:03:23 +08:00
parent 24c9d354e9
commit df92485ade

View File

@ -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}");
/**
* 验证是否为手机号码中国