From 630f7851948824342331363ab1a01b9cd37a5c73 Mon Sep 17 00:00:00 2001 From: Amin Yahyaabadi Date: Fri, 11 Feb 2022 18:53:24 -0800 Subject: [PATCH] perf: simplify msvc matcher --- .eslintrc.json | 2 +- dist/msvc_matcher.json | 2 +- src/msvc/msvc_matcher.json | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.eslintrc.json b/.eslintrc.json index 08c17b41..2f460539 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -1,4 +1,4 @@ { "extends": "eslint-config-atomic", - "ignorePatterns": ["dist/", "node_modules/", "src/python/setup-python/", "src/msvc/msvc-dev-cmd/"] + "ignorePatterns": ["dist/", "node_modules/"] } diff --git a/dist/msvc_matcher.json b/dist/msvc_matcher.json index 103c9d8d..0d6ed10e 100644 --- a/dist/msvc_matcher.json +++ b/dist/msvc_matcher.json @@ -4,7 +4,7 @@ "owner": "msvc", "pattern": [ { - "regexp": "^(?:\\s+\\d+\\>)?([^\\s].*)\\((\\d+),?(\\d+)?(?:,\\d+,\\d+)?\\)\\s*:\\s+(error|warning|info)\\s+(\\w{1,2}\\d+)\\s*:\\s*(.*)$", + "regexp": "^(?:\\s+\\d+>)?(\\S.*)\\((\\d+),?(\\d+)?(?:,\\d+,\\d+)?\\)\\s*:\\s+(error|warning|info)\\s+(\\w{1,2}\\d+)\\s*:\\s*(.*)$", "file": 1, "line": 2, "column": 3, diff --git a/src/msvc/msvc_matcher.json b/src/msvc/msvc_matcher.json index 103c9d8d..0d6ed10e 100644 --- a/src/msvc/msvc_matcher.json +++ b/src/msvc/msvc_matcher.json @@ -4,7 +4,7 @@ "owner": "msvc", "pattern": [ { - "regexp": "^(?:\\s+\\d+\\>)?([^\\s].*)\\((\\d+),?(\\d+)?(?:,\\d+,\\d+)?\\)\\s*:\\s+(error|warning|info)\\s+(\\w{1,2}\\d+)\\s*:\\s*(.*)$", + "regexp": "^(?:\\s+\\d+>)?(\\S.*)\\((\\d+),?(\\d+)?(?:,\\d+,\\d+)?\\)\\s*:\\s+(error|warning|info)\\s+(\\w{1,2}\\d+)\\s*:\\s*(.*)$", "file": 1, "line": 2, "column": 3,