Browse Source

Add mapping for backslash

frobinsonj 5 years ago
parent
commit
c9512bda91
2 changed files with 2 additions and 2 deletions
  1. 1 1
      jsfuck.js
  2. 1 1
      output.txt

+ 1 - 1
jsfuck.js

@@ -102,7 +102,7 @@
     '?':   '(RegExp()+"")[2]',
     '?':   '(RegExp()+"")[2]',
     '@':   USE_CHAR_CODE,
     '@':   USE_CHAR_CODE,
     '[':   '([]["entries"]()+"")[0]',
     '[':   '([]["entries"]()+"")[0]',
-    '\\':  USE_CHAR_CODE,
+    '\\':  '(RegExp("/")+"")[1]',
     ']':   '([]["entries"]()+"")[22]',
     ']':   '([]["entries"]()+"")[22]',
     '^':   USE_CHAR_CODE,
     '^':   USE_CHAR_CODE,
     '_':   USE_CHAR_CODE,
     '_':   USE_CHAR_CODE,

+ 1 - 1
output.txt

@@ -58,7 +58,7 @@
 `Y` 5111
 `Y` 5111
 `Z` 5077
 `Z` 5077
 `[` 171
 `[` 171
-`\` 5168
+`\` 2121
 `]` 189
 `]` 189
 `^` 5087
 `^` 5087
 `_` 5075
 `_` 5075