MCPcopy Create free account
hub / github.com/Zoo-Code-Org/Zoo-Code / escapeSpaces

Function escapeSpaces

webview-ui/src/utils/path-mentions.ts:11–13  ·  view source on GitHub ↗
(path: string)

Source from the content-addressed store, hash-verified

9 * @returns A path with spaces escaped
10 */
11export function escapeSpaces(path: string): string {
12 return path.replace(/ /g, "\\ ")
13}
14
15/**
16 * Converts an absolute path to a mention-friendly path

Callers 3

insertMentionFunction · 0.90
convertToMentionPathFunction · 0.85

Calls 1

replaceMethod · 0.65

Tested by

no test coverage detected