aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatěj Cepl <mcepl@cepl.eu>2024-04-04 16:08:55 +0200
committerMatěj Cepl <mcepl@cepl.eu>2024-04-04 16:08:55 +0200
commitf4dbccea3504916bb70a1b99b29e89886da42e18 (patch)
treec7c6c4cdc9f44a2c935533c4a48d013a993cfbcc
parentc0643727d39c4536444b5fb72df92018517839ba (diff)
downloadvim-suse-changes-f4dbccea3504916bb70a1b99b29e89886da42e18.tar.gz
feat(osurl): parse also CVE IDs
Example: CVE-2020-10735 (case insensitive).
-rwxr-xr-xosurl1
1 files changed, 1 insertions, 0 deletions
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"