From 269f137dfd95184d74a36f8d9c2287474870d6a4 Mon Sep 17 00:00:00 2001 From: Quentin Ligier Date: Mon, 9 Sep 2024 15:59:03 +0200 Subject: [PATCH] Fix the Sushi problem matcher Fixes #12 --- sushi-problem-matcher.json | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/sushi-problem-matcher.json b/sushi-problem-matcher.json index 865c7ca..a5b004b 100644 --- a/sushi-problem-matcher.json +++ b/sushi-problem-matcher.json @@ -4,16 +4,16 @@ "owner": "sushi-error", "pattern": [ { - "regexp": "^Sushi: (?>\\x1B\\[[0-9;]*m)*(error)(?>\\x1B\\[[0-9;]*m)* (.+)\\s+\\(\\d{2}:\\d{2}\\.\\d{3}\\)$", + "regexp": "^Sushi: (?>\\x1B\\[[0-9;]*m)*(error)(?>\\x1B\\[[0-9;]*m)* (.+)\\s+\\([^)]+\\)$", "severity": 1, "message": 2 }, { - "regexp": "^Sushi: File: (.+)\\s+\\(\\d{2}:\\d{2}\\.\\d{3}\\)$", + "regexp": "^Sushi: File: (.+)\\s+\\([^)]+\\)$", "file": 1 }, { - "regexp": "^Sushi: Line: (\\d+)( - (\\d+))?\\s+\\(\\d{2}:\\d{2}\\.\\d{3}\\)$", + "regexp": "^Sushi: Line: (\\d+)( - (\\d+))?\\s+\\([^)]+\\)$", "line": 1 } ] @@ -23,15 +23,15 @@ "severity": "warning", "pattern": [ { - "regexp": "^Sushi: (?>\\x1B\\[[0-9;]*m)*(warn\\s)(?>\\x1B\\[[0-9;]*m)* (.+)\\s+\\(\\d{2}:\\d{2}\\.\\d{3}\\)$", + "regexp": "^Sushi: (?>\\x1B\\[[0-9;]*m)*(warn\\s)(?>\\x1B\\[[0-9;]*m)* (.+)\\s+\\([^)]+\\)$", "message": 2 }, { - "regexp": "^Sushi: File: (.+)\\s+\\(\\d{2}:\\d{2}\\.\\d{3}\\)$", + "regexp": "^Sushi: File: (.+)\\s+\\([^)]+\\)$", "file": 1 }, { - "regexp": "^Sushi: Line: (\\d+)( - (\\d+))?\\s+\\(\\d{2}:\\d{2}\\.\\d{3}\\)$", + "regexp": "^Sushi: Line: (\\d+)( - (\\d+))?\\s+\\([^)]+\\)$", "line": 1 } ]