Skip to content

Commit 13e8132

Browse files
author
Einar Lielmanis
committed
Improve un.p.acker detection, fix beautifier#357
1 parent 4e0dd41 commit 13e8132

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

js/lib/unpackers/p_a_c_k_e_r_unpacker.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ var P_A_C_K_E_R = {
1818
},
1919

2020
get_chunks: function(str) {
21-
var chunks = str.match(/eval\(\(?function\(.*?,0,\{\}\)\)($|\n)/g);
21+
var chunks = str.match(/eval\(\(?function\(.*?(,0,\{\}\)\)|split\('\|'\)\)\))($|\n)/g);
2222
return chunks ? chunks : [];
2323
},
2424

0 commit comments

Comments
 (0)