(input: string)
| 143 | } |
| 144 | |
| 145 | function parts(input: string) { |
| 146 | return input |
| 147 | .split("/") |
| 148 | .map((item) => trimGitSuffix(item.trim())) |
| 149 | .filter(Boolean) |
| 150 | } |
| 151 | |
| 152 | function safeHost(input: string) { |
| 153 | return Boolean(input) && !input.startsWith("-") && !/[\s/\\]/.test(input) |
no test coverage detected