MCPcopy Create free account
hub / github.com/MoonshotAI/kimi-code / escapeRegex

Function escapeRegex

packages/pi-tui/src/autocomplete.ts:13–15  ·  view source on GitHub ↗
(value: string)

Source from the content-addressed store, hash-verified

11}
12
13function escapeRegex(value: string): string {
14 return value.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
15}
16
17function buildFdPathQuery(query: string): string {
18 const normalized = toDisplayPath(query);

Callers 1

buildFdPathQueryFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected