aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatěj Cepl <mcepl@cepl.eu>2024-04-04 16:04:21 +0200
committerMatěj Cepl <mcepl@cepl.eu>2024-04-04 16:04:58 +0200
commitc0643727d39c4536444b5fb72df92018517839ba (patch)
tree7052c280806d5599baa517e05c84cc8f5c9b2ac3
parent1fb30f837693b487413c7263dbb6bad0505ca801 (diff)
downloadvim-suse-changes-c0643727d39c4536444b5fb72df92018517839ba.tar.gz
fix(osurl): abbreviation GH-1234 are often upper-case on the GH pages themselves
-rwxr-xr-xosurl2
1 files changed, 1 insertions, 1 deletions
diff --git a/osurl b/osurl
index ae5504d..46dab66 100755
--- a/osurl
+++ b/osurl
@@ -26,7 +26,7 @@ STR="$(echo "$STR" | sed -E -e 's@gh[#-]([^#]*)[#-]([0-9]+)@https://github.com/\
STR="$(echo "$STR" | sed -E -e 's!gh[#-]([^#]*)@(\S+)!https://github.com/\1/commit/\2!')"
STR="$(echo "$STR" | sed -E -e 's@gh[#-]([^#]*)!(\S+)@https://github.com/\1/pull/\2@')"
# Python exception
-STR="$(echo "$STR" | sed -E -e 's@gh[#-]([0-9]+)[: ]*@https://github.com/python/cpython/issues/\1@')"
+STR="$(echo "$STR" | sed -E -e 's@gh[#-]([0-9]+)[: ]*@https://github.com/python/cpython/issues/\1@I')"
STR="$(echo "$STR" | sed -E -e 's@gh[#-]([^#]*)\$(\S+)@https://github.com/\1/discussions/\2@')"
STR="$(echo "$STR" | sed -E -e 's@gl[#-]([^#]*)[#-](\S+)@https://gitlab.com/\1/issues/\2@')"
STR="$(echo "$STR" | sed -E -e 's@gl[#-]([^#]*)!(\S+)@https://gitlab.com/\1/-/merge_requests/\2@')"