mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
skip shorter entities too
#WEB-17454 fixed
This commit is contained in:
@@ -32,7 +32,7 @@ public class WordSplitter extends BaseSplitter {
|
||||
}
|
||||
|
||||
@NonNls
|
||||
private static final Pattern SPECIAL = Pattern.compile("&\\p{Alnum}{4};?|#\\p{Alnum}{3,6}|0x\\p{Alnum}?");
|
||||
private static final Pattern SPECIAL = Pattern.compile("&\\p{Alnum}{2};?|#\\p{Alnum}{3,6}|0x\\p{Alnum}?");
|
||||
|
||||
@Override
|
||||
public void split(@Nullable String text, @NotNull TextRange range, Consumer<TextRange> consumer) {
|
||||
|
||||
@@ -227,7 +227,7 @@ public class SplitterTest {
|
||||
|
||||
@Test
|
||||
public void testSpecial() {
|
||||
String text = "test test";
|
||||
String text = "test test ⊃ >";
|
||||
correctListToCheck(PlainTextSplitter.getInstance(), text, "test", "test");
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user