MatthiasMullie\Minify\Minify::registerPattern PHP Method

registerPattern() protected method

Register a pattern to execute against the source content.
protected registerPattern ( string $pattern, string | callable $replacement = '' )
$pattern string PCRE pattern
$replacement string | callable Replacement value for matched pattern
    protected function registerPattern($pattern, $replacement = '')
    {
        // study the pattern, we'll execute it more than once
        $pattern .= 'S';
        $this->patterns[] = array($pattern, $replacement);
    }