diff --git a/code/stringify.js b/code/stringify.js index 2e9c948..efbb349 100644 --- a/code/stringify.js +++ b/code/stringify.js @@ -2,6 +2,7 @@ function escape (string) { return string .replace(/\\/g, '\\\\') .replace(/"/g, '\\"') + .replace(/\n/g, '\\n') } module.exports = function stringify (thing) {