mirror of
https://gitee.com/dromara/hutool.git
synced 2025-06-28 13:34:09 +08:00
修复TEL_400_800
正则规则太窄问题(issue#3967@Github)
This commit is contained in:
parent
28d1a8cdff
commit
580c34bbfa
@ -105,8 +105,6 @@ public class PatternPool {
|
||||
public final static Pattern TEL = Pattern.compile(RegexPool.TEL);
|
||||
/**
|
||||
* 座机号码+400+800电话
|
||||
*
|
||||
* @see <a href="https://baike.baidu.com/item/800">800</a>
|
||||
*/
|
||||
public final static Pattern TEL_400_800 = Pattern.compile(RegexPool.TEL_400_800);
|
||||
/**
|
||||
|
@ -99,10 +99,8 @@ public interface RegexPool {
|
||||
String TEL = "(010|02\\d|0[3-9]\\d{2})-?(\\d{6,8})";
|
||||
/**
|
||||
* 座机号码+400+800电话
|
||||
*
|
||||
* @see <a href="https://baike.baidu.com/item/800">800</a>
|
||||
*/
|
||||
String TEL_400_800 = "0\\d{2,3}[\\- ]?[1-9]\\d{6,7}|[48]00[\\- ]?[1-9]\\d{2}[\\- ]?\\d{4}";
|
||||
String TEL_400_800 = "0\\d{2,3}[\\- ]?[0-9]\\d{6,7}|[48]00[\\- ]?[0-9]\\d{2}[\\- ]?\\d{4}";
|
||||
/**
|
||||
* 18位身份证号码
|
||||
*/
|
||||
|
Loading…
Reference in New Issue
Block a user