Skip to content

Commit e413405

Browse files
committed
npm run build
1 parent e758cb8 commit e413405

File tree

2 files changed

+10
-14
lines changed

2 files changed

+10
-14
lines changed

dist/gcc_matcher.jsontemplate

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,13 @@
44
"owner": "gcc-problem-matcher",
55
"pattern": [
66
{
7-
"regexp": "^.*?${{ BASE }}\/?(.*?):(\\d+):(\\d*):?\\s+(?:fatal\\s+)?(warning|error):\\s+(.*)$",
8-
"file": 1,
9-
"line": 2,
10-
"column": 3,
11-
"severity": 4,
12-
"message": 5
7+
"regexp": "^(${{ BASE }})(.*?):(\\d+):(\\d*):?\\s+(?:fatal\\s+)?(warning|error):\\s+(.*)$",
8+
"fromPath": 1,
9+
"file": 2,
10+
"line": 3,
11+
"column": 4,
12+
"severity": 5,
13+
"message": 6
1314
}
1415
]
1516
}

dist/index.js

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2862,18 +2862,13 @@ const templatePath = __nccwpck_require__.ab + "gcc_matcher.jsontemplate";
28622862
const matcherPath = __nccwpck_require__.ab + "gcc_matcher.json";
28632863

28642864
// rootdir :: string
2865-
const rootdir = () =>
2866-
core.getInput('build-directory', {required: false});
2865+
const rootdir = core.getInput('build-directory', {required: false});
28672866

2868-
// parse :: IO() => IO() => Error | null
2867+
// parse :: string => string => Error | null
28692868
const parse = (templatePath) => (matcherPath) => {
2870-
const r = rootdir();
2871-
2872-
console.log(r);
2873-
28742869
const content = fs.readFileSync(templatePath, 'utf-8');
28752870

2876-
const parsed = content.replace(variable("BASE"), escapeRegExp(rootdir()));
2871+
const parsed = content.replace(variable("BASE"), escapeRegExp(rootdir));
28772872

28782873
fs.writeFileSync(matcherPath, parsed);
28792874

0 commit comments

Comments
 (0)