my $caniuse = do 'browser-support.inc.pl' or die $! || $@;
$_->{verrelease} = {
- # mark last two (future) versions as unreleased, ensure current isn't
- map { $_->[-1] => 0, $_->[-2] => 0, $_->[-3] => undef } $_->{versions}
+ # mark last three (future) versions as unreleased, ensure current isn't
+ map {
+ $_->[-1] => 0, $_->[-2] => 0, $_->[-3] => 0,
+ $_->[-4] => undef,
+ } $_->{versions}
} for values %{ $caniuse->{agents} };
my %CSTATS = (
# normalised version number comparable as string (cmp)
shift =~ /(?:.*-|^)(\d*)(.*)/;
# matched (major)(.minor) of last value in range (a-B)
- return sprintf('%02d', $1 || 0) . $2;
+ return sprintf('%02d', $1 || 99) . $2;
}
sub showversions {