(value: string)
| 34 | } |
| 35 | |
| 36 | function stripGitSuffix(value: string): string { |
| 37 | let normalized = value.trim().replace(/^\/+/, '').replace(/\/+$/, ''); |
| 38 | if (normalized.endsWith('.git')) { |
| 39 | normalized = normalized.slice(0, -4); |
| 40 | } |
| 41 | return normalized; |
| 42 | } |
no outgoing calls
no test coverage detected