test inlining

This commit is contained in:
Bruno Rybársky 2024-02-04 11:01:16 +01:00
parent 611280a738
commit 169afc4ba5

@ -61,7 +61,7 @@ function minifyJs($js) {
//$js = preg_replace('!/\*[^*]*\*+([^/][^*]*\*+)*/!', '', $js); //$js = preg_replace('!/\*[^*]*\*+([^/][^*]*\*+)*/!', '', $js);
// Remove line comments // Remove line comments
$js = preg_replace('/\/\/[^\n]*/', '', $js); $js = preg_replace('/\/\/(?![^\'"]*(\'|")[^\'"]*(\'|"))[^\n]*/', '', $js);
// Remove newlines and tabs // Remove newlines and tabs
//$js = str_replace(array("\r\n", "\r", "\n", "\t"), '', $js); //$js = str_replace(array("\r\n", "\r", "\n", "\t"), '', $js);