From c537d6f934ee4ec5c8ee72f8e568e7151fa3135b Mon Sep 17 00:00:00 2001 From: Matěj Cepl Date: Thu, 28 Mar 2024 16:43:10 +0100 Subject: fix(osurl,abbrevURL): add/fix support for GitHub Discussions. --- abbrevURL | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'abbrevURL') diff --git a/abbrevURL b/abbrevURL index 7485eec..a405876 100755 --- a/abbrevURL +++ b/abbrevURL @@ -24,7 +24,7 @@ fi STR="$(echo "$STR" | sed -E -e 's@https?://github.com/(.*)/issues/([0-9]+)@gh#\1#\2@')" STR="$(echo "$STR" | sed -E -e 's@https?://github.com/(.*)/pull/([0-9]+)@gh#\1!\2@')" -STR="$(echo "$STR" | sed -E -e 's@https?://github.com/(.*)/discussions/([0-9]+)@gh#\1!\2@')" +STR="$(echo "$STR" | sed -E -e 's@https?://github.com/(.*)/discussions/([0-9]+)@gh#\1\$\2@')" # TODO STR=STR:gsub("https?://github.com/(.*)/commit/(%w+)", function (r, i) # return "gh#" .. r .. "@" .. i:sub(1, 12) # end) -- cgit