From c0643727d39c4536444b5fb72df92018517839ba Mon Sep 17 00:00:00 2001 From: Matěj Cepl Date: Thu, 4 Apr 2024 16:04:21 +0200 Subject: fix(osurl): abbreviation GH-1234 are often upper-case on the GH pages themselves --- osurl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'osurl') 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@')" -- cgit