From f971a20c4423db16f73ce91969c82b27e6e69477 Mon Sep 17 00:00:00 2001 From: Luna D Date: Fri, 1 Oct 2021 16:11:28 +0200 Subject: [PATCH] use better-support jshite --- assets/js/preview.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/assets/js/preview.js b/assets/js/preview.js index 65ca068a..80427a06 100644 --- a/assets/js/preview.js +++ b/assets/js/preview.js @@ -24,7 +24,7 @@ function commentReply(user, url, textarea, quote) { newval += `${text}\n`; if (quote) { - newval += `> ${quote.replaceAll('\n', '\n> ')}\n\n`; + newval += `> ${quote.replace(/\n/g, '\n> ')}\n\n`; } textarea.value = newval;