(version: string)
| 9 | } |
| 10 | |
| 11 | function parseStableVersion(version: string): ParsedStableVersion | null { |
| 12 | const normalized = version.trim().replace(/^v/i, '') |
| 13 | const match = /^(\d+)\.(\d+)\.(\d+)$/.exec(normalized) |
| 14 | if (!match) return null |
| 15 | |
| 16 | return buildParsedVersion(match) |
| 17 | } |
| 18 | |
| 19 | function parseComparableCurrentVersion(version: string): ParsedComparableVersion | null { |
| 20 | const normalized = version.trim().replace(/^v/i, '') |
no test coverage detected