diff --git a/CHANGELOG.md b/CHANGELOG.md index e5d002708..9c5c2f0ba 100755 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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) diff --git a/hutool-core/src/main/java/cn/hutool/core/lang/RegexPool.java b/hutool-core/src/main/java/cn/hutool/core/lang/RegexPool.java index 0b7c8291a..e5ab9c3d0 100755 --- a/hutool-core/src/main/java/cn/hutool/core/lang/RegexPool.java +++ b/hutool-core/src/main/java/cn/hutool/core/lang/RegexPool.java @@ -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}$"; } diff --git a/hutool-core/src/test/java/cn/hutool/core/lang/IssueIAOGDRTest.java b/hutool-core/src/test/java/cn/hutool/core/lang/IssueIAOGDRTest.java new file mode 100644 index 000000000..5e4cec8ae --- /dev/null +++ b/hutool-core/src/test/java/cn/hutool/core/lang/IssueIAOGDRTest.java @@ -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("张三。")); + } +}