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

Commit d04f145

Browse files
committed
test
1 parent a31297e commit d04f145

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

dist/index.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3080,7 +3080,11 @@ async function run() {
30803080
catch { }
30813081
core.debug(`error running eslint?: ${eslintError}`);
30823082
try {
3083+
console.log(eslintOutput.indexOf('\\'));
3084+
console.log(eslintOutput.indexOf('\\"'));
3085+
console.log(eslintOutput.replace(/\\"/g, '\\\\"'));
30833086
console.log(eslintOutput.replace(/\\"/g, '\\"'));
3087+
console.log(eslintOutput.replace(/\"/g, '\\"'));
30843088
results = JSON.parse(eslintOutput.replace(/\\"/g, '\\"'));
30853089
const stylish = __webpack_require__(279);
30863090
// log to console so github action problem matchers can work on output

src/main.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,11 @@ async function run(): Promise<void> {
5555
core.debug(`error running eslint?: ${eslintError}`)
5656

5757
try {
58+
console.log(eslintOutput.indexOf('\\'))
59+
console.log(eslintOutput.indexOf('\\"'))
60+
console.log(eslintOutput.replace(/\\"/g, '\\\\"'))
5861
console.log(eslintOutput.replace(/\\"/g, '\\"'))
62+
console.log(eslintOutput.replace(/\"/g, '\\"'))
5963
results = JSON.parse(eslintOutput.replace(/\\"/g, '\\"'))
6064
const stylish = require('eslint/lib/formatters/stylish')
6165

0 commit comments

Comments
 (0)