This repository was archived by the owner on Dec 4, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -3080,7 +3080,7 @@ async function run() {
30803080 catch { }
30813081 core.debug(`error running eslint?: ${eslintError}`);
30823082 try {
3083- results = JSON.parse(eslintOutput);
3083+ results = JSON.parse(eslintOutput.replace(/\\"/g, '\\\\"') );
30843084 const stylish = __webpack_require__(279);
30853085 // log to console so github action problem matchers can work on output
30863086 console.log(stylish(results)); // eslint-disable-line no-console
Original file line number Diff line number Diff line change @@ -55,7 +55,7 @@ async function run(): Promise<void> {
5555 core . debug ( `error running eslint?: ${ eslintError } ` )
5656
5757 try {
58- results = JSON . parse ( eslintOutput )
58+ results = JSON . parse ( eslintOutput . replace ( / \\ " / g , '\\\\"' ) )
5959 const stylish = require ( 'eslint/lib/formatters/stylish' )
6060
6161 // log to console so github action problem matchers can work on output
@@ -65,7 +65,7 @@ async function run(): Promise<void> {
6565 core . setFailed ( 'eslint completed with errors' )
6666 }
6767 } catch ( err ) {
68- core . debug ( eslintOutput ) ;
68+ core . debug ( eslintOutput )
6969 core . setFailed ( err . message )
7070 }
7171
You can’t perform that action at this time.
0 commit comments