mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-07-21 15:09:48 +08:00
修复TEL_400_800
正则规则太窄问题(issue#3967@Github)
This commit is contained in:
@@ -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)
|
||||
|
@@ -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);
|
||||
/**
|
||||
|
@@ -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位身份证号码
|
||||
*/
|
||||
|
Reference in New Issue
Block a user