node: move NodeConsoleAdditionalFilter to AbstractFileHyperlinkFilter API clion/163.4953
authorSergey Simonchik <sergey.simonchik@jetbrains.com>
Wed, 21 Sep 2016 16:12:05 +0000 (19:12 +0300)
committerSergey Simonchik <sergey.simonchik@jetbrains.com>
Wed, 21 Sep 2016 16:12:28 +0000 (19:12 +0300)
platform/lang-impl/src/com/intellij/execution/filters/PatternBasedFileHyperlinkRawDataFinder.java

index cde5f0918f3adc6cbc2c9dfc335e6ce47db92fb3..18b4f0f2982905d3a7e22c3d8b004b5708c1e192 100644 (file)
@@ -82,7 +82,7 @@ public class PatternBasedFileHyperlinkRawDataFinder implements FileHyperlinkRawD
         }
       }
     }
-    if (path == null || lineNumber == UNKNOWN || hyperlinkStartInd == -1) {
+    if (path == null || lineNumber == UNKNOWN || columnNumber == UNKNOWN ||  hyperlinkStartInd == -1) {
       return Collections.emptyList();
     }
     if (!format.isZeroBasedLineNumbering()) {
@@ -110,7 +110,7 @@ public class PatternBasedFileHyperlinkRawDataFinder implements FileHyperlinkRawD
   private Pair<Matcher, PatternHyperlinkFormat> findMatcher(@NotNull String line) {
     for (PatternHyperlinkFormat linkFormat : myLinkFormats) {
       Matcher matcher = linkFormat.getPattern().matcher(line);
-      if (matcher.matches()) {
+      if (matcher.find()) {
         return Pair.create(matcher, linkFormat);
       }
     }