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

Function formatCommandArrayPart

apps/mobile/src/lib/threadActivity.ts:702–704  ·  view source on GitHub ↗
(value: string)

Source from the content-addressed store, hash-verified

700}
701
702function formatCommandArrayPart(value: string): string {
703 return /[\s"'`]/.test(value) ? `"${value.replace(/"/g, '\\"')}"` : value;
704}
705
706function formatCommandValue(value: unknown): string | null {
707 const direct = asTrimmedString(value);

Callers 1

formatCommandValueFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected