From a716419dbd53f5e256cc0143e824719b2f8cde6e Mon Sep 17 00:00:00 2001 From: Brian Surowiec Date: Mon, 3 Feb 2020 14:28:09 -0500 Subject: [PATCH] Update regex to support rules without line numbers --- .github/stylelint-problem-matcher.json | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/stylelint-problem-matcher.json b/.github/stylelint-problem-matcher.json index 8b1c3e1..0bfdf9a 100644 --- a/.github/stylelint-problem-matcher.json +++ b/.github/stylelint-problem-matcher.json @@ -8,11 +8,11 @@ "file": "1" }, { - "regexp": "^\\s+(\\d+):(\\d+)\\s+(✖|×)\\s+(.*)\\s{3,}(.*)$", - "line": 1, - "column": 2, - "message": 4, - "code": 5, + "regexp": "^\\s+((\\d+):(\\d+))?\\s+(✖|×)\\s+(.*)\\s{3,}(.*)$", + "line": 2, + "column": 3, + "message": 5, + "code": 6, "loop": true } ]