MCPcopy 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

1202exports.minimatch.match = exports.match;
1203var globMagic = /[?*]|[+@!]\(.*?\)|\[|\]/;
1204var regExpEscape = (s) => s.replace(/[-[\]{}()*+?.,\\^$|#\s]/g, "\\$&");
1205var Minimatch = class {
1206 options;
1207 set;

Callers 1

makeReMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected