MCPcopy Index your code
hub / github.com/amercier/generator-angular-php / escapeRegExp

Function escapeRegExp

util.js:5–7  ·  view source on GitHub ↗
(str)

Source from the content-addressed store, hash-verified

3var fs = require('fs');
4
5function escapeRegExp (str) {
6 return str.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g, '\\$&');
7}
8
9function rewrite (args) {
10 /* jshint -W044 */

Callers 1

rewriteFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected