(arg: string)
| 23 | * - Variable expansion (`$VAR`) |
| 24 | */ |
| 25 | export function sanitizeShellArgument(arg: string): string { |
| 26 | const result = quote([arg]); |
| 27 | return typeof result === "string" ? result : arg; |
| 28 | } |
| 29 | |
| 30 | /** |
| 31 | * Validates that a repository name/URL doesn't contain malicious patterns. |
no outgoing calls
no test coverage detected