MCPcopy Create free account
hub / github.com/pingdotgg/t3code / formatCommandArrayPart

Function formatCommandArrayPart

apps/web/src/session-logic.ts:1007–1009  ·  view source on GitHub ↗
(value: string)

Source from the content-addressed store, hash-verified

1005}
1006
1007function formatCommandArrayPart(value: string): string {
1008 return /[\s"'`]/.test(value) ? `"${value.replace(/"/g, '\\"')}"` : value;
1009}
1010
1011function formatCommandValue(value: unknown): string | null {
1012 const direct = asTrimmedString(value);

Callers 1

formatCommandValueFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected