diff options
-rwxr-xr-x | abbrevURL | 1 | ||||
-rwxr-xr-x | osurl | 1 |
2 files changed, 2 insertions, 0 deletions
@@ -19,6 +19,7 @@ STR="$(echo "$STR" | sed -E -e 's@https?://gitlab.com/(.*)/-/issues/([0-9]+)@gl# STR="$(echo "$STR" | sed -E -e 's@https?://gitlab.com/(.*)/-/pull/([0-9]+)@gl#\1!\2@')" STR="$(echo "$STR" | sed -E -e 's@https?://gitlab.com/(.*)/-/merge-requests/([0-9]+)@gl#\1!\2@')" STR="$(ID=${STR#*/commit/}; echo "$STR" | sed -E -e 's!https?://gitlab.com/(.*)/-/commit/([a-zA-Z0-9]+)!gl#\1@'"${ID%"${ID#????????????}"}"'!')" +STR="$(echo "$STR" | sed -E -e 's@https?://todo.sr.ht/~(.*)/([0-9]+)@srht#\1#\2@')" STR="$(echo "$STR" | sed -E -e 's@https?://sourceforge.net/support/tracker.php\?aid=([0-9]+)@sh#\1@')" STR="$(echo "$STR" | sed -E -e 's@https?://sf.net/support/tracker.php\?aid=([0-9]+)@sh#\1@')" STR="$(echo "$STR" | sed -E -e 's@https?://sourceforge.net/p/(.*)/patches/([0-9]+)/@shp#\1#\2@')" @@ -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/@')" |