From: Mischa POSLAWSKY Date: Wed, 17 Nov 2021 01:37:54 +0000 (+0100) Subject: browser: replace inter-feature links to caniuse.com X-Git-Tag: v1.13~79 X-Git-Url: http://git.shiar.nl/sheet.git/commitdiff_plain/aeb3c2b89b75f171d481c410690c6207b9d2dc83 browser: replace inter-feature links to caniuse.com --- diff --git a/browser.plp b/browser.plp index e6491cb..930c435 100644 --- a/browser.plp +++ b/browser.plp @@ -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;