Same name in other branches
  1. 6.0.x advagg_js_minify/jspacker.inc \JavaScriptPacker::_safeRegExp()
  2. 7.x-1.x advagg_js_compress/jspacker.inc \JavaScriptPacker::_safeRegExp()
  3. 7.x-2.x advagg_js_compress/jspacker.inc \JavaScriptPacker::_safeRegExp()
  4. 8.x-2.x advagg_js_minify/jspacker.inc \JavaScriptPacker::_safeRegExp()
  5. 8.x-3.x advagg_js_minify/jspacker.inc \JavaScriptPacker::_safeRegExp()
  6. 8.x-4.x advagg_js_minify/jspacker.inc \JavaScriptPacker::_safeRegExp()
1 call to JavaScriptPacker::_safeRegExp()
JavaScriptPacker::_bootStrap in advagg_js_minify/jspacker.inc

File

advagg_js_minify/jspacker.inc, line 445

Class

JavaScriptPacker

Code

private function _safeRegExp($string) {
    return '/' . preg_replace('/\\$/', '\\\\$', $string) . '/';
}