mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-05-06 05:10:22 +07:00
RegExp: really fix order of evaluation in Checker (IDEA-255232)
GitOrigin-RevId: 954f19914ae46b7af3a184a09c5d8dc3988ea12f
This commit is contained in:
committed by
intellij-monorepo-bot
parent
ee79e974c1
commit
03e2858a7f
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user