Same name in other branches
- 5.0.x advagg_js_minify/jspacker.inc \JavaScriptPacker::JSFUNCTION_decodeBody
- 6.0.x advagg_js_minify/jspacker.inc \JavaScriptPacker::JSFUNCTION_decodeBody
- 7.x-1.x advagg_js_compress/jspacker.inc \JavaScriptPacker::JSFUNCTION_decodeBody
- 7.x-2.x advagg_js_compress/jspacker.inc \JavaScriptPacker::JSFUNCTION_decodeBody
- 8.x-2.x advagg_js_minify/jspacker.inc \JavaScriptPacker::JSFUNCTION_decodeBody
- 8.x-3.x advagg_js_minify/jspacker.inc \JavaScriptPacker::JSFUNCTION_decodeBody
Fichier
-
advagg_js_minify/
jspacker.inc, line 512
Classe
Code
const JSFUNCTION_decodeBody = ' if (!\'\'.replace(/^/, String)) {
// decode all the values we need
while ($count--) {
$decode[$encode($count)] = $keywords[$count] || $encode($count);
}
// global replacement function
$keywords = [function ($encoded) {return $decode[$encoded]}];
// generic match
$encode = function () {return \'\\\\w+\'};
// reset the loop counter - we are now doing a global replace
$count = 1;
}
';