Remove's unecessary decimal, ie 13.0px => 13px
Paramètres
(string) str: Unit string:
1 call to CSSCompression_Numeric::decimal()
- CSSCompression_Numeric::numeric dans advagg_css_compress/
css-compressor-3.x/ src/ lib/ Numeric.inc - Runs all numeric operations
Fichier
-
advagg_css_compress/
css-compressor-3.x/ src/ lib/ Numeric.inc, line 51
Classe
- CSSCompression_Numeric
- CSS Compressor [VERSION] [DATE] Corey Hart @ http://www.codenothing.com
Code
private function decimal($str) {
if (preg_match($this->rdecimal, $str, $match)) {
$str = ($match[1] == '-' ? '-' : '') . floatval($match[2]) . $match[3];
}
return $str;
}