X-Git-Url: http://git.shiar.net/sheet.git/blobdiff_plain/fe77cb435fa873779cdf74ab486f319f2b2d484a..68f17e8677688380e144e379ce5ae7a08d0a7c44:/browser.plp?ds=inline
diff --git a/browser.plp b/browser.plp
index 9278c88..930c435 100644
--- a/browser.plp
+++ b/browser.plp
@@ -49,7 +49,7 @@ my %DSTATS = (
join(' ',
'with prefix',
map {"-$_-"}
- ($caniuse->{agents}->{$_[0]}->{prefix_exceptions} // {})->{$_[1]}
+ $caniuse->{agents}->{$_[0]}->{version_list}->{$_[1]}->{prefix}
// $caniuse->{agents}->{$_[0]}->{prefix} // (),
);
},
@@ -243,7 +243,7 @@ for my $browser (@browsers) {
sprintf('%.1f%%', sum(@{ $canihas->{$browser} }{ @{$span} }) * $usagepct),
'version ' . showversions(@{$span}, undef),
(map {
- $_ ? () : '(development)'
+ $_ ? sprintf('(released %d)', $_/3600/24/365.25 + 1970) : '(development)'
} $caniuse->{agents}->{$browser}->{version_list}->{$lastver}->{release_date}),
),
!defined $lastver && ' class="ex"',
@@ -311,6 +311,7 @@ sub formatnotes {
s/(?<= [^.\n]) $/./gmx; # consistently end each line by a period
Entity($_);
s{ ` ([^`]*) ` }{$1
}gx;
+ s{ \(\K (?: \Qhttps://caniuse.com\E )? (?: /? \#feat= | / ) }{#}gx;
s{ \[ ([^]]*) \] \( ([^)]*) \) }{$1}gx;
}
return @html;