diff options
author | Matěj Cepl <mcepl@cepl.eu> | 2024-04-04 16:08:55 +0200 |
---|---|---|
committer | Matěj Cepl <mcepl@cepl.eu> | 2024-04-04 16:08:55 +0200 |
commit | f4dbccea3504916bb70a1b99b29e89886da42e18 (patch) | |
tree | c7c6c4cdc9f44a2c935533c4a48d013a993cfbcc | |
parent | c0643727d39c4536444b5fb72df92018517839ba (diff) | |
download | vim-suse-changes-f4dbccea3504916bb70a1b99b29e89886da42e18.tar.gz |
feat(osurl): parse also CVE IDs
Example: CVE-2020-10735 (case insensitive).
-rwxr-xr-x | osurl | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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" |