(value: string)
| 163 | |
| 164 | function isVersionGreater(left: string, right: string) { |
| 165 | const parse = (value: string) => { |
| 166 | const [core, prerelease] = value.replace(/^v/, "").split("-", 2) |
| 167 | return { core: core.split(".").map((part) => Number.parseInt(part, 10) || 0), prerelease } |
| 168 | } |
| 169 | const a = parse(left) |
| 170 | const b = parse(right) |
| 171 | for (let index = 0; index < Math.max(a.core.length, b.core.length); index++) { |