Skip to content
This repository was archived by the owner on Dec 4, 2023. It is now read-only.

Commit e8b6240

Browse files
committed
fix: fix json parsing
1 parent 4615d4f commit e8b6240

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

dist/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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.replace(/\\"/g, '\\\\"'));
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

src/main.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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.replace(/\\"/g, '\\\\"'))
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

0 commit comments

Comments
 (0)