Be more permissive in urlize() and delete the `^' in REs. - plumb - Open certain URL patterns with an ad-hoc opener (plumber)
 (HTM) hg clone https://bitbucket.org/iamleot/plumb
 (DIR) Log
 (DIR) Files
 (DIR) Refs
 (DIR) README
       ---
 (DIR) changeset 5a0b90c4bd7d2f0f60197a9c7bf06781122d1137
 (DIR) parent b43ca5fae6e5486b2184565b6848b9c0276dc564
 (HTM) Author: Leonardo Taccari <iamleot@gmail.com>
       Date:   Tue, 27 Mar 2018 22:14:23 
       
       Be more permissive in urlize() and delete the `^' in REs.
       
       Diffstat:
        dplumb |  6 +++---
        1 files changed, 3 insertions(+), 3 deletions(-)
       ---
       diff -r b43ca5fae6e5 -r 5a0b90c4bd7d dplumb
       --- a/dplumb    Tue Mar 27 22:03:41 2018 +0200
       +++ b/dplumb    Tue Mar 27 22:14:23 2018 +0200
       @@ -58,10 +58,10 @@
        {
        
               sed \
       -           -E -e 's;^(CVE-[0-9]+-[0-9]+).*$;cve://\1;g' \
       -           -E -e 's;^doi:(//)?;doi://;g' \
       +           -E -e 's;(CVE-[0-9]+-[0-9]+).*$;cve://\1;g' \
       +           -E -e 's;doi:(//)?;doi://;g' \
                   -E -e 's;mailto:(//)?;mailto://;g' \
       -           -E -e 's;^ar[Xx]iv:(//)?;arxiv://;g'
       +           -E -e 's;ar[Xx]iv:(//)?;arxiv://;g'
        }
        
        #