mirror of
https://gitee.com/dromara/hutool.git
synced 2025-04-05 17:37:59 +08:00
修复RegexPool.CHINESE_NAME范围太大的问题
This commit is contained in:
parent
f1bc355ff0
commit
7e83369205
@ -2,13 +2,14 @@
|
||||
# 🚀Changelog
|
||||
|
||||
-------------------------------------------------------------------------------------------------------------
|
||||
# 5.8.33(2024-09-02)
|
||||
# 5.8.33(2024-09-03)
|
||||
|
||||
### 🐣新特性
|
||||
* 【core 】 SyncFinisher增加setExecutorService方法(issue#IANKQ1@Gitee)
|
||||
|
||||
### 🐞Bug修复
|
||||
* 【json 】 修复JSONConfig.setDateFormat设置后toBean无效问题(issue#3713@Gitee)
|
||||
* 【json 】 修复JSONConfig.setDateFormat设置后toBean无效问题(issue#3713@Github)
|
||||
* 【core 】 修复RegexPool.CHINESE_NAME范围太大的问题(issue#IAOGDR@Gitee)
|
||||
|
||||
-------------------------------------------------------------------------------------------------------------
|
||||
**# 5.8.32(2024-08-30)
|
||||
|
@ -221,5 +221,5 @@ public interface RegexPool {
|
||||
* 总结中文姓名:2-60位,只能是中文和维吾尔族的点·
|
||||
* 放宽汉字范围:如生僻姓名 刘欣䶮yǎn
|
||||
*/
|
||||
String CHINESE_NAME = "^[\u2E80-\u9FFF·]{2,60}$";
|
||||
String CHINESE_NAME = "^[\u4E00-\u9FFF·]{2,60}$";
|
||||
}
|
||||
|
@ -0,0 +1,11 @@
|
||||
package cn.hutool.core.lang;
|
||||
|
||||
import org.junit.jupiter.api.Assertions;
|
||||
import org.junit.jupiter.api.Test;
|
||||
|
||||
public class IssueIAOGDRTest {
|
||||
@Test
|
||||
void isChineseNameTest() {
|
||||
Assertions.assertFalse(Validator.isChineseName("张三。"));
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user