browser: replace inter-feature links to caniuse.com
authorMischa POSLAWSKY <perl@shiar.org>
Wed, 17 Nov 2021 01:37:54 +0000 (02:37 +0100)
committerMischa POSLAWSKY <perl@shiar.org>
Mon, 6 Dec 2021 11:07:29 +0000 (12:07 +0100)
browser.plp

index e6491cba039951ae034ade42a20dbad82d045e3b..930c435fb83b14d5ea39c93f1f8e77e3b58bfdca 100644 (file)
@@ -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;