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

Function toDisplayPath

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

Source from the content-addressed store, hash-verified

7const PATH_DELIMITERS = new Set([" ", "\t", '"', "'", "="]);
8
9function toDisplayPath(value: string): string {
10 return value.replace(/\\/g, "/");
11}
12
13function escapeRegex(value: string): string {
14 return value.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");

Callers 5

buildFdPathQueryFunction · 0.85
walkDirectoryWithFdFunction · 0.85
scopedPathForDisplayMethod · 0.85
getFileSuggestionsMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected