Build the token regex based on defined token
Parameters
(class) control: CSSCompression Controller:
File
-
advagg_css_compress/
css-compressor-3.x/ src/ lib/ Cleanup.inc, line 89
Class
- 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);
}