MCPcopy Index your code
hub / github.com/claude-code-best/claude-code / escapeRegExp

Function escapeRegExp

src/utils/stringUtils.ts:9–11  ·  view source on GitHub ↗
(str: string)

Source from the content-addressed store, hash-verified

7 * pattern in a RegExp constructor.
8 */
9export function escapeRegExp(str: string): string {
10 return str.replace(/[.*+?^${}()|[\]\\]/g, '\\$&')
11}
12
13/**
14 * Uppercases the first character of a string, leaving the rest unchanged.

Callers 4

extractTagFunction · 0.70
compileTermPatternsFunction · 0.50
getUniqueForkNameFunction · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected