Removes suffix from 0 unit, ie 0px; => 0;

Paramètres

(string) str: Unit string:

1 call to CSSCompression_Numeric::units()
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 64

Classe

CSSCompression_Numeric
CSS Compressor [VERSION] [DATE] Corey Hart @ http://www.codenothing.com

Code

private function units($str) {
    if (preg_match($this->runit, $str, $match)) {
        $str = '0';
    }
    return $str;
}