From: Christian Heller Date: Thu, 29 Oct 2020 16:01:21 +0000 (+0100) Subject: Fix unparser.quote bug. X-Git-Url: https://plomlompom.com/repos/%7B%7Bdb.prefix%7D%7D/%7B%7B%20web_path%20%7D%7D/decks/test.html?a=commitdiff_plain;h=7bdf22f3e130e29d285c5c77ccea4073a0dac630;p=plomrogue2-experiments Fix unparser.quote bug. --- diff --git a/new2/rogue_chat_nocanvas_monochrome.html b/new2/rogue_chat_nocanvas_monochrome.html index e3204e8..7f1820f 100644 --- a/new2/rogue_chat_nocanvas_monochrome.html +++ b/new2/rogue_chat_nocanvas_monochrome.html @@ -149,7 +149,7 @@ let unparser = { let quoted = ['"']; for (let i = 0; i < str.length; i++) { let c = str[i]; - if (c in ['"', '\\']) { + if (['"', '\\'].includes(c)) { quoted.push('\\'); }; quoted.push(c);