Browse Source

Merge pull request #29 from fasttime/patch-3

Shortened code for RegExp constructor
Martin Kleppe 11 years ago
parent
commit
a1b12936fe
2 changed files with 5 additions and 5 deletions
  1. 1 1
      jsfuck.js
  2. 4 4
      output.txt

+ 1 - 1
jsfuck.js

@@ -20,7 +20,7 @@
     'String':   '([]+[])',
     'Boolean':  '(![])',
     'Function': '[]["filter"]',
-    'RegExp':   'Function("return/0/")()'
+    'RegExp':   'Function("return/"+false+"/")()'
   };
 
   var MAPPING = {

+ 4 - 4
output.txt

@@ -24,18 +24,18 @@
 `7` 39
 `8` 44
 `9` 49
-`:` 2284
+`:` 2282
 `;` 8044
 `<` 292
 `=` 687
 `>` 298
-`?` 2279
+`?` 2277
 `@` 6411
 `A` 725
 `B` 728
 `C` 3400
 `D` 3633
-`E` 2285
+`E` 2283
 `F` 846
 `G` 4810
 `H` 6447
@@ -48,7 +48,7 @@
 `O` 1654
 `P` 6416
 `Q` 6418
-`R` 2280
+`R` 2278
 `S` 730
 `T` 4813
 `U` 3569