Removes leading zero in decimal, ie 0.33px => .33px
Parameters
(string) str: Unit string:
1 call to CSSCompression_Numeric::zeroes()
- CSSCompression_Numeric::numeric in advagg_css_compress/
css-compressor-3.x/ src/ lib/ Numeric.inc - Runs all numeric operations
File
-
advagg_css_compress/
css-compressor-3.x/ src/ lib/ Numeric.inc, line 78
Class
- CSSCompression_Numeric
- CSS Compressor [VERSION] [DATE] Corey Hart @ http://www.codenothing.com
Code
private function zeroes($str) {
if (preg_match($this->rzero, $str, $match)) {
$str = (isset($match[1]) && $match[1] == '-' ? '-' : '') . $match[2] . (isset($match[3]) ? $match[3] : '');
}
return $str;
}