URL-ize CVEs as well - 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 4d6339ada3a02c420813df8c2ecd37a1aa3c42ba (DIR) parent 168ad8104315644cfcf5538f2a4e173b6a8a0382 (HTM) Author: Leonardo Taccari <iamleot@gmail.com> Date: Sat, 24 Mar 2018 16:31:50 URL-ize CVEs as well While here also restricts arxiv URL-izing only to lines starting with `ar[xX]iv'. Diffstat: dplumb | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) --- diff -r 168ad8104315 -r 4d6339ada3a0 dplumb --- a/dplumb Sat Mar 24 16:13:42 2018 +0100 +++ b/dplumb Sat Mar 24 16:31:50 2018 +0100 @@ -32,7 +32,8 @@ plumb "$( sed \ - -e 's;ar[Xx]iv:;arxiv://;' | + -E -e 's;(^|[[:space:]]+)(CVE-[0-9]+-[0-9]+)([[:punct:]]*|[[:space:]]*|$);cve://\2 ;g' \ + -E -e 's;^ar[Xx]iv:;arxiv://;g' | awk \ ' BEGIN {