(value: string)
| 38 | } |
| 39 | |
| 40 | function 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 | } |
nothing calls this directly
no outgoing calls
no test coverage detected