home · contact · privacy
Fix unparser.quote bug.
[plomrogue2-experiments] / 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);