home · contact · privacy
Fix unparser.quote bug.
authorChristian Heller <c.heller@plomlompom.de>
Thu, 29 Oct 2020 16:01:21 +0000 (17:01 +0100)
committerChristian Heller <c.heller@plomlompom.de>
Thu, 29 Oct 2020 16:01:21 +0000 (17:01 +0100)
new2/rogue_chat_nocanvas_monochrome.html

index e3204e8ac373d3e48edbed165341d8f3bd220b94..7f1820f976793f39f28af3d996336cd60b879ed6 100644 (file)
@@ -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);