From f1c7e7202b6b8a686a68ec161cfee19fcd0fa6bc Mon Sep 17 00:00:00 2001 From: Matěj Cepl Date: Thu, 4 Jul 2024 23:55:00 +0200 Subject: feat(abbrevURL,osurl): add support for Sourcehut issue tracker. Translate from https://todo.sr.ht/~mcepl/m2crypto/341 to srht#mcepl/m2crypto#341, and back. --- osurl | 1 + 1 file changed, 1 insertion(+) (limited to 'osurl') diff --git a/osurl b/osurl index ec34474..a7c9f15 100755 --- a/osurl +++ b/osurl @@ -35,6 +35,7 @@ STR="$(echo "$STR" | sed -E -e 's@glfo[#-]([^#]*)[#-](\S+)@https://gitlab.freede STR="$(echo "$STR" | sed -E -e 's@glgo[#-]([^#]*)[#-](\S+)@https://gitlab.gnome.org/\1/issues/\2@')" STR="$(echo "$STR" | sed -E -e 's@coo[#-]([^#]*)[#-](\S+)@https://code.opensuse.org/\1/issue/\2@')" STR="$(echo "$STR" | sed -E -e 's@code-o-o[#-]([^#]*)[#-](\S+)@https://code.opensuse.org/\1/issue/\2@')" +STR="$(echo "$STR" | sed -E -e 's@srht[#-]([^#]*)[#-](\S+)@https://todo.sr.ht/~\1/\2@')" STR="$(echo "$STR" | sed -E -e 's@sh[#-]([0-9]+)@http://sourceforge.net/support/tracker.php?aid=\1@')" STR="$(echo "$STR" | sed -E -e 's@shb[#-](.*)[#-]([0-9]+)@https://sourceforge.net/p/\1/bugs/\2/@')" STR="$(echo "$STR" | sed -E -e 's@shp[#-](.*)[#-]([0-9]+)@https://sourceforge.net/p/\1/patches/\2/@')" -- cgit