Skip to content

Commit

Permalink
Make patterns ungreedy in the Sushi problem matcher
Browse files Browse the repository at this point in the history
  • Loading branch information
qligier committed Sep 9, 2024
1 parent 269f137 commit d9c3bfa
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions sushi-problem-matcher.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@
"owner": "sushi-error",
"pattern": [
{
"regexp": "^Sushi: (?>\\x1B\\[[0-9;]*m)*(error)(?>\\x1B\\[[0-9;]*m)* (.+)\\s+\\([^)]+\\)$",
"regexp": "^Sushi: (?>\\x1B\\[[0-9;]*m)*(error)(?>\\x1B\\[[0-9;]*m)* (.+?)\\s+\\([^)]+\\)$",
"severity": 1,
"message": 2
},
{
"regexp": "^Sushi: File: (.+)\\s+\\([^)]+\\)$",
"regexp": "^Sushi: File: (.+?)\\s+\\([^)]+\\)$",
"file": 1
},
{
Expand All @@ -23,11 +23,11 @@
"severity": "warning",
"pattern": [
{
"regexp": "^Sushi: (?>\\x1B\\[[0-9;]*m)*(warn\\s)(?>\\x1B\\[[0-9;]*m)* (.+)\\s+\\([^)]+\\)$",
"regexp": "^Sushi: (?>\\x1B\\[[0-9;]*m)*(warn\\s)(?>\\x1B\\[[0-9;]*m)* (.+?)\\s+\\([^)]+\\)$",
"message": 2
},
{
"regexp": "^Sushi: File: (.+)\\s+\\([^)]+\\)$",
"regexp": "^Sushi: File: (.+?)\\s+\\([^)]+\\)$",
"file": 1
},
{
Expand Down

0 comments on commit d9c3bfa

Please sign in to comment.