Skip to content

Commit 57f92ed

Browse files
committed
fix: Empty data parsing for odd number branch
Because the cutover to 17 being "current" happens, but the line doesn't have an LTS date, the tags wernt changing
1 parent c2444b0 commit 57f92ed

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

stackbrew.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ const slimRE = new RegExp(/\*-slim/);
3434
for (version of versions) {
3535
let lts = new Date(`${config[version].lts}T00:00:00.00`).getTime();
3636
let maintenance = new Date(`${config[version].maintenance}T00:00:00.00`).getTime();
37-
let isCurrent = lts >= now;
37+
let isCurrent = isNaN(lts) || lts >= now;
3838
let isLTS = (maintenance >= now) && (now >= lts);
3939
let codename = config[version].codename
4040
let defaultAlpine = config[version]['alpine-default']

0 commit comments

Comments
 (0)