File
-
advagg_css_compress/
yui/ CSSMin.inc, line 949
Class
Code
private function processStrings($matches) {
$match = $matches[0];
$quote = substr($match, 0, 1);
$match = $this->strSlice($match, 1, -1);
// maybe the string contains a comment-like substring?
// one, maybe more? put'em back then
if (($pos = strpos($match, self::COMMENT)) !== false) {
for ($i = 0, $max = count($this->comments); $i < $max; $i++) {
$match = preg_replace($this->getCommentPlaceholderRegexById($i), $this->escapeReplacementString($this->comments[$i]), $match, 1);
}
}
// minify alpha opacity in filter strings
$match = preg_replace('/progid:DXImageTransform\\.Microsoft\\.Alpha\\(Opacity=/i', 'alpha(opacity=', $match);
$preservedTokenPlaceholder = $this->registerPreservedToken($match);
return $quote . $preservedTokenPlaceholder . $quote;
}