Same name in other branches
  1. 5.0.x advagg_js_minify/jspacker.inc \JavaScriptPacker::JSFUNCTION_unpack
  2. 6.0.x advagg_js_minify/jspacker.inc \JavaScriptPacker::JSFUNCTION_unpack
  3. 7.x-1.x advagg_js_compress/jspacker.inc \JavaScriptPacker::JSFUNCTION_unpack
  4. 8.x-2.x advagg_js_minify/jspacker.inc \JavaScriptPacker::JSFUNCTION_unpack
  5. 8.x-3.x advagg_js_minify/jspacker.inc \JavaScriptPacker::JSFUNCTION_unpack
  6. 8.x-4.x advagg_js_minify/jspacker.inc \JavaScriptPacker::JSFUNCTION_unpack

File

advagg_js_compress/jspacker.inc, line 492

Class

JavaScriptPacker

Code

const JSFUNCTION_unpack = 'function($packed, $ascii, $count, $keywords, $encode, $decode) {
    while ($count--) {
        if ($keywords[$count]) {
            $packed = $packed.replace(new RegExp(\'\\\\b\' + $encode($count) + \'\\\\b\', \'g\'), $keywords[$count]);
        }
    }
    return $packed;
}';