Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update p_a_c_k_e_r_unpacker.js: fix tests #2262

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions js/src/unpackers/p_a_c_k_e_r_unpacker.js
Original file line number Diff line number Diff line change
Expand Up @@ -103,8 +103,8 @@ var P_A_C_K_E_R = {
t.expect("function test (){alert ('This is a test!')}; " +
"eval(function(p,a,c,k,e,r){e=String;if(!''.replace(/^/,String))" +
"{while(c--)r[c]=k[c]||c;k=[function(e){return r[e]}];e=function" +
"(){return'\\w+'};c=1};while(c--)if(k[c])p=p.replace(new RegExp(" +
"'\\b'+e(c)+'\\b','g'),k[c]);return p}('0 2=\\\'{Íâ–+›ï;ã†Ù¥#\\\'',3,3," +
"(){return'\\\\w+'};c=1};while(c--)if(k[c])p=p.replace(new RegExp(" +
"'\\\\b'+e(c)+'\\\\b','g'),k[c]);return p}('0 2=\\'{Íâ–+›ï;ã†Ù¥#\\'',3,3," +
"'var||a'.split('|'),0,{}))",
"function test (){alert ('This is a test!')}; var a='{Íâ–+›ï;ã†Ù¥#'");

Expand Down
Loading