Skip to content

Commit 41669ff

Browse files
committed
Add fixer for p_a_c_k_e_r_unpacker test
(see beautifier/js-beautify#2262)
1 parent 50113e8 commit 41669ff

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

jsBeautifier.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10188,6 +10188,11 @@ function convertSource(file, text) {
1018810188
"for (var k = 0, l = strings.length; k < l; ++k) {"
1018910189
);
1019010190
}
10191+
else if(file == "js/lib/unpackers/p_a_c_k_e_r_unpacker.js") {
10192+
text = text
10193+
.replace("\"(){return'\\\\w+'};", "\"(){return'\\\\\\\\w+'};")
10194+
.replace("\"'\\\\b'+e(c)+'\\\\b','g')", "\"'\\\\\\\\b'+e(c)+'\\\\\\\\b','g')");
10195+
}
1019110196
else if(file.substr(0, 18) == "js/test/generated/") {
1019210197
text = text
1019310198
.replace(

0 commit comments

Comments
 (0)