修复TEL_400_800正则规则太窄问题(issue#3967@Github)

This commit is contained in:
Looly
2025-06-14 18:40:25 +08:00
parent 484cdb9e4f
commit 2a602d0bd4
3 changed files with 3 additions and 6 deletions

View File

@@ -2,7 +2,7 @@
# 🚀Changelog
-------------------------------------------------------------------------------------------------------------
# 5.8.39(2025-06-09)
# 5.8.39(2025-06-14)
### 🐣新特性
* 【ai 】 增加SSE流式返回函数参数callback增加超时时间配置豆包、grok新增文生图接口豆包生成视频支持使用model,新增HutoolAI平台
@@ -19,6 +19,7 @@
* 【poi 】 修复`ExcelPicUtil`中可能的空指针异常
* 【core 】 修复`LunarFestival`中重复节日问题issue#ICC8X3@Gitee
* 【core 】 修复`ThreadUtil`中中断异常处理丢失中断信息的问题解决ConcurrencyTester资源未释放的问题pr#1358@Gitee
* 【core 】 修复`TEL_400_800`正则规则太窄问题issue#3967@Github
-------------------------------------------------------------------------------------------------------------
# 5.8.38(2025-05-13)

View File

@@ -91,8 +91,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);
/**

View File

@@ -87,10 +87,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位身份证号码
*/