MCPcopy Index your code
hub / github.com/codeaashu/claude-code / escapeRegex

Function escapeRegex

web/components/file-viewer/SearchBar.tsx:248–250  ·  view source on GitHub ↗
(str: string)

Source from the content-addressed store, hash-verified

246}
247
248function escapeRegex(str: string): string {
249 return str.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
250}

Callers 1

SearchBarFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected