Build the token regex based on defined token

Paramètres

(class) control: CSSCompression Controller:

Fichier

advagg_css_compress/css-compressor-3.x/src/lib/Cleanup.inc, line 89

Classe

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

Code

public function __construct(CSSCompression_Control $control) {
    $this->Control = $control;
    $this->token = CSSCompression::TOKEN;
    $this->options =& $control->Option->options;
    // Have to build the token regexs after initialization
    $this->rtoken = "/({$this->token})(.*?)({$this->token})/";
    array_push($this->rescape, $this->rtoken);
}