mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-04-19 03:01:48 +08:00
fix tel regex
This commit is contained in:
parent
b68f3e4e2d
commit
57dbe23961
@ -3,10 +3,12 @@
|
||||
|
||||
-------------------------------------------------------------------------------------------------------------
|
||||
|
||||
# 5.7.6 (2021-07-28)
|
||||
# 5.7.6 (2021-07-29)
|
||||
|
||||
### 🐣新特性
|
||||
* 【core 】 增加LookupFactory和MethodHandleUtil(issue#I42TVY@Gitee)
|
||||
* 【core 】 改进RegexPool.TEL支持无-号码(pr#387@Gitee)
|
||||
* 【core 】 PhoneUtil中新增获取固话号码中区号,以及固话号码中号码的方法(pr#387@Gitee)
|
||||
|
||||
### 🐞Bug修复
|
||||
* 【jwt 】 修复JWTUtil中几个方法非static的问题(pr#386@Gitee)
|
||||
|
@ -76,7 +76,8 @@ public interface RegexPool {
|
||||
*/
|
||||
String MOBILE_MO = "(?:0|853|\\+853)?(?:|-)6\\d{7}";
|
||||
/**
|
||||
* 座机号码
|
||||
* 座机号码<br>
|
||||
* pr#387@Gitee
|
||||
*/
|
||||
String TEL = "(010|02\\d|0[3-9]\\d{2})-?(\\d{6,8})";
|
||||
/**
|
||||
|
@ -167,7 +167,7 @@ public class PhoneUtil {
|
||||
*
|
||||
* @param value 完整的固话号码
|
||||
* @return 固话号码的区号部分
|
||||
* @since 5.7.6
|
||||
* @since 5.7.7
|
||||
*/
|
||||
public static CharSequence subTelBefore(CharSequence value)
|
||||
{
|
||||
@ -179,7 +179,7 @@ public class PhoneUtil {
|
||||
*
|
||||
* @param value 完整的固话号码
|
||||
* @return 固话号码的号码部分
|
||||
* @since 5.7.6
|
||||
* @since 5.7.7
|
||||
*/
|
||||
public static CharSequence subTelAfter(CharSequence value)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user