MCPcopy Index your code
hub / github.com/nodejs/node / regExpEscape2

Function regExpEscape2

deps/minimatch/index.js:453–453  ·  view source on GitHub ↗
(s)

Source from the content-addressed store, hash-verified

451 var justDots = /* @__PURE__ */ new Set(["..", "."]);
452 var reSpecials = new Set("().*{}+?[]^$\\!");
453 var regExpEscape2 = (s) => s.replace(/[-[\]{}()*+?.,\\^$|#\s]/g, "\\$&");
454 var qmark2 = "[^/]";
455 var star2 = qmark2 + "*?";
456 var starNoEmpty = qmark2 + "+?";

Callers 1

#parseGlobMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected