Same name in other branches
  1. 5.0.x advagg_js_minify/jshrink.inc \JShrink\Minifier::unlock()
  2. 6.0.x advagg_js_minify/jshrink.inc \JShrink\Minifier::unlock()
  3. 7.x-2.x advagg_js_compress/jshrink.inc \JShrink\Minifier::unlock()
  4. 8.x-2.x advagg_js_minify/jshrink.inc \JShrink\Minifier::unlock()
  5. 8.x-3.x advagg_js_minify/jshrink.inc \JShrink\Minifier::unlock()

Replace "locks" with the original characters

Parameters

string $js The string to unlock:

Return value

bool

File

advagg_js_minify/jshrink.inc, line 616

Class

Minifier
Minifier

Namespace

JShrink

Code

protected function unlock($js) {
    if (empty($this->locks)) {
        return $js;
    }
    foreach ($this->locks as $lock => $replacement) {
        $js = str_replace($lock, $replacement, $js);
    }
    return $js;
}