MCPcopy Create free account
hub / github.com/Effect-TS/effect / escapeRegExp

Function escapeRegExp

packages/tools/jsdocs/src/Jsdocs.ts:492–494  ·  view source on GitHub ↗
(value: string)

Source from the content-addressed store, hash-verified

490}
491
492function escapeRegExp(value: string): string {
493 return value.replace(/[|\\{}()[\]^$+?.]/g, "\\$&")
494}
495
496function globToRegExp(glob: string): RegExp {
497 let source = "^"

Callers 1

globToRegExpFunction · 0.70

Calls 1

replaceMethod · 0.45

Tested by

no test coverage detected