diff --git a/RegExpSupport/src/org/intellij/lang/regexp/intention/CheckRegExpForm.java b/RegExpSupport/src/org/intellij/lang/regexp/intention/CheckRegExpForm.java index 7a0238cbf9e9..3f6535667dd6 100644 --- a/RegExpSupport/src/org/intellij/lang/regexp/intention/CheckRegExpForm.java +++ b/RegExpSupport/src/org/intellij/lang/regexp/intention/CheckRegExpForm.java @@ -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; }