Skip to content

Commit

Permalink
Fixed v2 escaping
Browse files Browse the repository at this point in the history
  • Loading branch information
MSeal committed Nov 18, 2022
1 parent 16bd27c commit 2e2e2fc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ function run() {
papermillEnvs['NOTEABLE_TOKEN'] = token;
// TODO Fail here if undefined as the papermill command will fail later
}
const githubString = JSON.stringify(JSON.parse(process.env.GITHUB || ""));
const githubString = JSON.stringify(JSON.parse(process.env.GITHUB || "")).replace(/'/g, "\\'");
parsedNotebookFile = path.join(outputDir, path.basename(notebookFile));
// Install dependencies
yield exec.exec('python3 -m pip install papermill-origami papermill>=2.4.0 nbformat>=5.4.0 nbconvert>=7.0.0');
Expand Down
2 changes: 1 addition & 1 deletion src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ async function run() {
papermillEnvs['NOTEABLE_TOKEN'] = token;
// TODO Fail here if undefined as the papermill command will fail later
}
const githubString = JSON.stringify(JSON.parse(process.env.GITHUB || ""));
const githubString = JSON.stringify(JSON.parse(process.env.GITHUB || "")).replace(/'/g, "\\'");

parsedNotebookFile = path.join(outputDir, path.basename(notebookFile));
// Install dependencies
Expand Down

0 comments on commit 2e2e2fc

Please # to comment.