MCPcopy Create free account
hub / github.com/Openpanel-dev/openpanel / escapeRegex

Function escapeRegex

scripts/add-internal-links.mjs:135–137  ·  view source on GitHub ↗
(s)

Source from the content-addressed store, hash-verified

133}
134
135function escapeRegex(s) {
136 return s.replace(/[.*+?^${}()|[\]\\]/g, '\\$&');
137}
138
139// ── Core processing ──────────────────────────────────────────────────
140

Callers 1

processFileFunction · 0.85

Calls 1

replaceMethod · 0.80

Tested by

no test coverage detected