You are here

private function JavaScriptPacker::_safeRegExp in Advanced CSS/JS Aggregation 7

Same name and namespace in other branches
  1. 8.4 advagg_js_minify/jspacker.inc \JavaScriptPacker::_safeRegExp()
  2. 8.2 advagg_js_minify/jspacker.inc \JavaScriptPacker::_safeRegExp()
  3. 8.3 advagg_js_minify/jspacker.inc \JavaScriptPacker::_safeRegExp()
  4. 6 advagg_js_compress/jspacker.inc \JavaScriptPacker::_safeRegExp()
  5. 7.2 advagg_js_compress/jspacker.inc \JavaScriptPacker::_safeRegExp()
1 call to JavaScriptPacker::_safeRegExp()
JavaScriptPacker::_bootStrap in advagg_js_compress/jspacker.inc

File

advagg_js_compress/jspacker.inc, line 429

Class

JavaScriptPacker

Code

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