RegExp: really fix order of evaluation in Checker (IDEA-255232)

GitOrigin-RevId: 954f19914ae46b7af3a184a09c5d8dc3988ea12f
This commit is contained in:
Bas Leijdekkers
2022-01-12 18:23:33 +01:00
committed by intellij-monorepo-bot
parent ee79e974c1
commit 03e2858a7f

View File

@@ -518,11 +518,12 @@ public final class CheckRegExpForm {
setMatches(regExpFile, collectMatches(matcher));
return RegExpMatchResult.MATCHES;
}
else if (matcher.find()) {
final boolean hitEnd = matcher.hitEnd();
if (matcher.find()) {
setMatches(regExpFile, collectMatches(matcher));
return RegExpMatchResult.FOUND;
}
else if (matcher.hitEnd()) {
else if (hitEnd) {
return RegExpMatchResult.INCOMPLETE;
}
else {