Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
13
function
escapeRegex(value: string): string {
14
return
value.replace(/[.*+?^${}()|[\]\\]/g,
"\\$&"
);
15
}
16
17
function
buildFdPathQuery(query: string): string {
18
const
normalized = toDisplayPath(query);
Callers
1
buildFdPathQuery
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected