MCPcopy Create free account
hub / github.com/effect-app/libs / escapeRe

Function escapeRe

packages/eslint-codegen-model/src/cli.ts:35–37  ·  view source on GitHub ↗
(s: string)

Source from the content-addressed store, hash-verified

33const facadeModelBlockRe = /\/\/ codegen:start[ \t]*\{[^}]*\bpreset:\s*model\b[^}]*\bfacade:\s*true\b/
34
35function escapeRe(s: string): string {
36 return s.replace(/[.*+?^${}()|[\]\\]/g, "\\$&")
37}
38
39type CtorMode = "plain" | "type" | "make"
40

Callers 3

syncCtorFunction · 0.85
syncFacadeSourceCtorFunction · 0.85
syncFacadeFunction · 0.85

Calls 1

replaceMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…