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

Function quoteSystemdArg

packages/codex-native-api/src/daemon_manager.ts:1134–1139  ·  view source on GitHub ↗
(value: string)

Source from the content-addressed store, hash-verified

1132}
1133
1134function quoteSystemdArg(value: string): string {
1135 if (!/[\s"\\]/u.test(value)) {
1136 return value;
1137 }
1138 return `"${value.replace(/\\/gu, '\\\\').replace(/"/gu, '\\"')}"`;
1139}
1140
1141function escapeXml(value: string): string {
1142 return value

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected