Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
3
var
fs = require(
'fs'
);
4
5
function
escapeRegExp (str) {
6
return
str.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,
'\\$&'
);
7
}
8
9
function
rewrite (args) {
10
/* jshint -W044 */
Callers
1
rewrite
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected