diff options
Diffstat (limited to 'abbrevURL')
-rwxr-xr-x | abbrevURL | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -28,7 +28,7 @@ STR="$(echo "$STR" | sed -E -e 's@https?://github.com/(.*)/discussions/([0-9]+)@ # TODO STR=STR:gsub("https?://github.com/(.*)/commit/(%w+)", function (r, i) # return "gh#" .. r .. "@" .. i:sub(1, 12) # end) -STR="$(echo "$STR" | sed -E -e 's!https?://github.com/(.*)/commit/([a-zA-Z0-9]+)!gh#\1#\2!')" +STR="$(echo "$STR" | sed -E -e 's!https?://github.com/(.*)/commit/([a-zA-Z0-9]+)!gh#\1@\2!')" STR="$(echo "$STR" | sed -E -e 's@https?://gitlab.com/(.*)/issues/([0-9]+)@gl#\1#\2@')" 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/(.*)/-/issues/([0-9]+)@gl#\1#\2@')" |