mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
change regexp to avoid SOE on long words with underscores (PY-6604)
This commit is contained in:
@@ -31,7 +31,7 @@ public class TextSplitter extends BaseSplitter {
|
||||
return INSTANCE;
|
||||
}
|
||||
|
||||
private static final Pattern EXTENDED_WORD_AND_SPECIAL = Pattern.compile("([&#]|0x[0-9]*)?\\p{L}+'?\\p{L}(_*\\p{L})*");
|
||||
private static final Pattern EXTENDED_WORD_AND_SPECIAL = Pattern.compile("([&#]|0x[0-9]*)?\\p{L}+'?\\p{L}[_\\p{L}]*");
|
||||
|
||||
@Override
|
||||
public void split(@Nullable String text, @NotNull TextRange range, Consumer<TextRange> consumer) {
|
||||
|
||||
Reference in New Issue
Block a user