From 37d4acbfb9d5ab2cf02f95ba786fa3f531e69e91 Mon Sep 17 00:00:00 2001 From: chee Date: Sat, 18 May 2019 01:17:11 +0100 Subject: [PATCH] =?UTF-8?q?replace=20newlines=20with=20\n,=20also=20na?= =?UTF-8?q?=C3=AFvely?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- code/stringify.js | 1 + 1 file changed, 1 insertion(+) 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) {