File tree Expand file tree Collapse file tree 2 files changed +10
-14
lines changed Expand file tree Collapse file tree 2 files changed +10
-14
lines changed Original file line number Diff line number Diff line change 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 }
Original file line number Diff line number Diff line change @@ -2862,18 +2862,13 @@ const templatePath = __nccwpck_require__.ab + "gcc_matcher.jsontemplate";
28622862const 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
28692868const 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
You can’t perform that action at this time.
0 commit comments