Rebuild printable roast plans and remove machine-based adjustments
Test and deploy / test-and-deploy (push) Successful in 2m28s

This commit is contained in:
snowspeeder committed 2026-09-05 14:56:11 -04:00
1 parent e9f2393c96
commit 824a964f9d
30 files changed
+1721 -908

No files matched your search

+8 -2
View File
@@ -15,8 +15,14 @@ export function parseDuration(str) {
const sign = s.startsWith("-") ? -1 : 1;
const body = s.replace(/^[+-]/, "");
const m = body.match(/^(\d+):(\d{1,2})$/);
if (m) return sign * (Number(m[1]) * 60 + Number(m[2]));
if (/^\d+(\.\d+)?$/.test(body)) return sign * Math.round(Number(body));
if (m) {
const seconds = Number(m[1]) * 60 + Number(m[2]);
return Number(m[2]) < 60 && Number.isSafeInteger(seconds) ? sign * seconds : null;
}
if (/^\d+(\.\d+)?$/.test(body)) {
const seconds = Math.round(Number(body));
return Number.isSafeInteger(seconds) ? sign * seconds : null;
}
return null;
}