Skip to content

Commit

Permalink
revert: strip quotes from stringified content
Browse files Browse the repository at this point in the history
  • Loading branch information
jbeveland27 committed Feb 20, 2023
1 parent f64a7a1 commit 56e223b
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions fixes/file-modify.js
Original file line number Diff line number Diff line change
Expand Up @@ -123,9 +123,10 @@ async function fileModify(fs, options, targets, dryRun = false) {
? `${options.write_mode} text from ${
options.text.file || options.text.url
} to file`
: `${options.write_mode} \`${JSON.stringify(content)
.replace(/\\"/g, '"')
.slice(1, -1)}\` to file`
: `${options.write_mode} \`${JSON.stringify(content).slice(
1,
-1
)}\` to file`
return {
message,
passed: true,
Expand Down

0 comments on commit 56e223b

Please sign in to comment.