You are here

private function CSSmin::replace_calc in Advanced CSS/JS Aggregation 8.3

Same name and namespace in other branches
  1. 8.2 advagg_css_minify/yui/CSSMin.inc \CSSmin::replace_calc()
  2. 6 advagg_css_compress/yui/CSSMin.inc \CSSmin::replace_calc()

File

advagg_css_minify/yui/CSSMin.inc, line 601

Class

CSSmin

Code

private function replace_calc($matches) {
  $this->preserved_tokens[] = trim(preg_replace('/\\s*([\\*\\/\\(\\),])\\s*/', '$1', $matches[2]));
  return 'calc(' . self::TOKEN . (count($this->preserved_tokens) - 1) . '___' . ')';
}