i18n searchable options: \\pL -> ^\\pL

GitOrigin-RevId: 768ae4cf0a97f898c6a4a207721a893903cb48cf
This commit is contained in:
Dmitry.Krasilschikov
2021-07-13 15:50:40 +00:00
committed by intellij-monorepo-bot
parent 5262b6bb49
commit 60a8e34003
@@ -252,7 +252,7 @@ public final class SearchUtil {
@NotNull
private static Pattern getNonWordPattern(boolean i18n) {
return Pattern.compile("[" + (i18n ? "\\pL" : "\\W") + "&&[^\\p{Punct}\\p{Blank}]]");
return Pattern.compile("[" + (i18n ? "^\\pL" : "\\W") + "&&[^\\p{Punct}\\p{Blank}]]");
}