(input: string)
| 81 | } |
| 82 | |
| 83 | function safeHost(input: string) { |
| 84 | return Boolean(input) && !input.startsWith("-") && !/[\s/\\]/.test(input) |
| 85 | } |
| 86 | |
| 87 | function safeSegment(input: string) { |
| 88 | return input !== "." && input !== ".." && !input.includes(":") && !/[\s/\\]/.test(input) |
no outgoing calls
no test coverage detected