From f4dbccea3504916bb70a1b99b29e89886da42e18 Mon Sep 17 00:00:00 2001 From: Matěj Cepl Date: Thu, 4 Apr 2024 16:08:55 +0200 Subject: feat(osurl): parse also CVE IDs Example: CVE-2020-10735 (case insensitive). --- osurl | 1 + 1 file changed, 1 insertion(+) (limited to 'osurl') diff --git a/osurl b/osurl index 46dab66..7dfd512 100755 --- a/osurl +++ b/osurl @@ -57,6 +57,7 @@ STR="$(echo "$STR" | sed -E -e 's@build[#-]([0-9]+)@https://api.github.com/repos STR="$(echo "$STR" | sed -E -e 's@osc[#-]([0-9]+)@https://api.github.com/repos/openSUSE/osc/issues/\1@')" STR="$(echo "$STR" | sed -E -e 's@poo[#-]([0-9]+)@https://progress.opensuse.org/issues/\1@')" STR="$(echo "$STR" | sed -E -e 's@lf[#-]([0-9]+)@https://developerbugs.linux-foundation.org/\1@')" +STR="$(echo "$STR" | sed -E -e 's@cve[#-]([0-9-]+)@https://cve.mitre.org/cgi-bin/cvename.cgi?name=\1@I')" OPEN_UTIL="xdg-open" type flatpak-xdg-open >/dev/null 2>/dev/null && OPEN_UTIL="flatpak-xdg-open" -- cgit