fix: handle 2-part version strings in isNewer (NaN comparison bug)
All checks were successful
Build & Release / build (push) Successful in 2m56s

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
MiTHRAL 2026-04-21 15:51:00 -04:00
parent c828a6af47
commit 6ada11778a

View file

@ -107,7 +107,7 @@ function notify(title: string, body: string) {
}
function isNewer(latest: string, current: string): boolean {
const parse = (v: string) => v.split(".").map(Number);
const parse = (v: string) => v.split(".").map(p => Number(p) || 0);
const [lA, lB, lC] = parse(latest);
const [cA, cB, cC] = parse(current);
if (lA !== cA) return lA > cA;