(input: string)
| 74 | } |
| 75 | |
| 76 | function parts(input: string) { |
| 77 | return input |
| 78 | .split("/") |
| 79 | .map((item) => trimGitSuffix(item.trim())) |
| 80 | .filter(Boolean) |
| 81 | } |
| 82 | |
| 83 | function safeHost(input: string) { |
| 84 | return Boolean(input) && !input.startsWith("-") && !/[\s/\\]/.test(input) |
no test coverage detected