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