Skip to content

Commit

Permalink
fix: strip quotes from stringified content
Browse files Browse the repository at this point in the history
  • Loading branch information
jbeveland27 authored Feb 11, 2023
1 parent e988f65 commit 5222510
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions fixes/file-modify.js
Original file line number Diff line number Diff line change
Expand Up @@ -116,10 +116,11 @@ async function fileModify(fs, options, targets, dryRun = false) {
// return the target information
const message =
typeof options.text === 'object'
? `${options.write_mode} text from ${
options.text.file || options.text.url
} to file`
: `${options.write_mode} \`${JSON.stringify(content).slice(
? `${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`
Expand Down

0 comments on commit 5222510

Please sign in to comment.