Skip to content

Commit

Permalink
fix: newline excessively escaped
Browse files Browse the repository at this point in the history
  • Loading branch information
abaicus committed Nov 8, 2024
1 parent de98685 commit 086be86
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ function escapeForJson(str) {
.replace(//g, '\\"') // Escape right double quotation mark
.replace(//g, "\\'") // Escape left single quotation mark
.replace(//g, "\\'") // Escape right single quotation mark
.replace(/\n/g, '\\n') // Escape newlines
.replace(/\r/g, '\\r'); // Escape carriage returns
}
Toolkit.run(async tools => {
Expand Down

0 comments on commit 086be86

Please sign in to comment.