MCPcopy Create free account
hub / github.com/Gan-Xing/CodexBridge / quoteWindowsShellArgument

Function quoteWindowsShellArgument

src/providers/codex/cli_command.ts:40–49  ·  view source on GitHub ↗
(value: string)

Source from the content-addressed store, hash-verified

38}
39
40function quoteWindowsShellArgument(value: string): string {
41 const normalized = String(value ?? '');
42 if (!normalized) {
43 return '""';
44 }
45 if (!/[\s"]/u.test(normalized)) {
46 return normalized;
47 }
48 return `"${normalized.replace(/"/g, '""')}"`;
49}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected