mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-15 02:59:33 +07:00
RegExp: fix order of evaluation (IDEA-255232)
GitOrigin-RevId: 8dcb2cd7e9936b84f2fcdca7c60d7b1eae986ba9
This commit is contained in:
committed by
intellij-monorepo-bot
parent
6a68669ac6
commit
53f8a549d8
@@ -503,13 +503,13 @@ public final class CheckRegExpForm {
|
||||
setMatches(regExpFile, collectMatches(matcher));
|
||||
return RegExpMatchResult.MATCHES;
|
||||
}
|
||||
else if (matcher.hitEnd()) {
|
||||
return RegExpMatchResult.INCOMPLETE;
|
||||
}
|
||||
else if (matcher.find()) {
|
||||
setMatches(regExpFile, collectMatches(matcher));
|
||||
return RegExpMatchResult.FOUND;
|
||||
}
|
||||
else if (matcher.hitEnd()) {
|
||||
return RegExpMatchResult.INCOMPLETE;
|
||||
}
|
||||
else {
|
||||
return RegExpMatchResult.NO_MATCH;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user