Removes leading zero in decimal, ie 0.33px => .33px

Paramètres

(string) str: Unit string:

1 call to CSSCompression_Numeric::zeroes()
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 78

Classe

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;
}