(v: string)
| 192 | |
| 193 | /** `0.9.9` / `v0.9.9` → `v0.9.9` (release tags are v-prefixed). */ |
| 194 | export function normalizeVersion(v: string): string { |
| 195 | const t = v.trim(); |
| 196 | return t.startsWith('v') ? t : `v${t}`; |
| 197 | } |
| 198 | |
| 199 | /** Strip a leading `v`: `v0.9.9` → `0.9.9`. */ |
| 200 | export function stripV(v: string): string { |
no outgoing calls
no test coverage detected