(v)
| 9 | export function compareVersions(a, b) { |
| 10 | if (!a || !b) return 0; |
| 11 | const normalize = (v) => v.replace(/^v/, ''); |
| 12 | const na = normalize(a); |
| 13 | const nb = normalize(b); |
| 14 | const isPrerelease = (v) => v.split('.').some((p) => !/^\d+$/.test(p)); |