Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/nodejs/node
/ regExpEscape
Function
regExpEscape
deps/minimatch/index.js:1204–1204 ·
view source on GitHub ↗
(s)
Source
from the content-addressed store, hash-verified
1202
exports.minimatch.match = exports.match;
1203
var
globMagic = /[?*]|[+@!]\(.*?\)|\[|\]/;
1204
var
regExpEscape = (s) => s.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,
"\\$&"
);
1205
var
Minimatch =
class
{
1206
options;
1207
set;
Callers
1
makeRe
Method · 0.70
Calls
no outgoing calls
Tested by
no test coverage detected