private function CSSmin::replace_calc in Advanced CSS/JS Aggregation 8.2
Same name and namespace in other branches
- 8.3 advagg_css_minify/yui/CSSMin.inc \CSSmin::replace_calc()
- 6 advagg_css_compress/yui/CSSMin.inc \CSSmin::replace_calc()
File
- advagg_css_minify/
yui/ CSSMin.inc, line 601
Class
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) . '___' . ')';
}