unicode: one set of barb arrows from unicode 7.0
[sheet.git] / browser.plp
index 9278c886708296b5cd63e1023b300455fb35deac..930c435fb83b14d5ea39c93f1f8e77e3b58bfdca 100644 (file)
@@ -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{  ` ([^`]*)  ` }{<code>$1</code>}gx;
+               s{ \(\K (?: \Qhttps://caniuse.com\E )? (?: /? \#feat= | / ) }{#}gx;
                s{ \[ ([^]]*) \] \( ([^)]*) \) }{<a href="$2">$1</a>}gx;
        }
        return @html;