MCPcopy Create free account
hub / github.com/AnukarOP/claude-code-leaked / escapeRegExp

Function escapeRegExp

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

Source from the content-addressed store, hash-verified

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

Callers 3

compileTermPatternsFunction · 0.85
extractTagFunction · 0.85
getUniqueForkNameFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected