You are here

protected function JSqueeze::restoreCc in Advanced CSS/JS Aggregation 8.4

Same name and namespace in other branches
  1. 8.2 advagg_js_minify/jsqueeze.inc \Patchwork\JSqueeze::restoreCc()
  2. 8.3 advagg_js_minify/jsqueeze.inc \Patchwork\JSqueeze::restoreCc()
  3. 7.2 advagg_js_compress/jsqueeze.inc \Patchwork\JSqueeze::restoreCc()
1 call to JSqueeze::restoreCc()
JSqueeze::extractStrings in advagg_js_minify/jsqueeze.inc

File

advagg_js_minify/jsqueeze.inc, line 991

Class

JSqueeze

Namespace

Patchwork

Code

protected function restoreCc(&$s, $lf = true) {
  $lf && ($s = str_replace('@#3', '', $s));
  $s = str_replace('@#1', '@*/', $s);
  $s = str_replace('2#@', '//@', $s);
  $s = str_replace('1#@', '/*@', $s);
  $s = str_replace('##', '#', $s);
}