mirror of
https://gitee.com/dromara/hutool.git
synced 2025-06-28 13:34:09 +08:00
StrUtil.isBlank
增加\u200c
判断(issue#3903@Github)
This commit is contained in:
parent
37ab8650c3
commit
d191e279d6
@ -14,6 +14,7 @@
|
||||
* 【db 】 增加GoldenDB识别(pr#3886@Github)
|
||||
* 【http 】 改进`UrlQuery`对无参URL增加判断识别(issue#IBRVE4@Gitee)
|
||||
* 【core 】 改进`PropDesc`中去除Transient引用避免NoClassDefFoundError(issue#3901@Github)
|
||||
* 【core 】 `StrUtil.isBlank`增加`\u200c`判断(issue#3903@Github)
|
||||
|
||||
### 🐞Bug修复
|
||||
* 【setting】 修复`SettingLoader`load未抛出异常导致配置文件无法正常遍历的问题(pr#3868@Github)
|
||||
|
@ -264,6 +264,8 @@ public class CharUtil implements CharPool {
|
||||
|| c == '\u3164'
|
||||
// Braille Pattern Blank
|
||||
|| c == '\u2800'
|
||||
// Zero Width Non-Joiner, ZWNJ
|
||||
|| c == '\u200c'
|
||||
// MONGOLIAN VOWEL SEPARATOR
|
||||
|| c == '\u180e';
|
||||
}
|
||||
|
@ -1,8 +1,9 @@
|
||||
package cn.hutool.core.util;
|
||||
|
||||
import static org.junit.jupiter.api.Assertions.*;
|
||||
import org.junit.jupiter.api.Test;
|
||||
|
||||
import static org.junit.jupiter.api.Assertions.*;
|
||||
|
||||
public class CharUtilTest {
|
||||
|
||||
@Test
|
||||
@ -43,6 +44,9 @@ public class CharUtilTest {
|
||||
|
||||
final char a5 = ' ';
|
||||
assertTrue(CharUtil.isBlankChar(a5));
|
||||
|
||||
final char a6 = '\u200c';
|
||||
assertTrue(CharUtil.isBlankChar(a6));
|
||||
}
|
||||
|
||||
@Test
|
||||
|
Loading…
Reference in New Issue
Block a user