aboutsummaryrefslogtreecommitdiffstats
path: root/abbrevURL
diff options
context:
space:
mode:
authorMatěj Cepl <mcepl@cepl.eu>2023-02-17 23:06:51 +0100
committerMatěj Cepl <mcepl@cepl.eu>2024-03-28 17:08:55 +0100
commit6930261dc8380061868c50a9511a55bdf15090e8 (patch)
tree5238b6aa7e841d630e1770a8cca42daa246660df /abbrevURL
parent998c9d9dd39dd7e52524fa3b5076c2ef226a1a54 (diff)
downloadvim-suse-changes-6930261dc8380061868c50a9511a55bdf15090e8.tar.gz
feat(abbrevURL): parse also GitLab abbreviations
Diffstat (limited to 'abbrevURL')
-rwxr-xr-xabbrevURL8
1 files changed, 4 insertions, 4 deletions
diff --git a/abbrevURL b/abbrevURL
index b1c0c2d..cfc7b19 100755
--- a/abbrevURL
+++ b/abbrevURL
@@ -11,16 +11,16 @@ str = arg[1]:lower()
end
str = str:gsub("https?://github.com/(.*)/issues/(%d+)", "gh#%1#%2")
-str = str:gsub("https?://github.com/(.*)/pull/(%d+)", "gh#%1#%2")
+str = str:gsub("https?://github.com/(.*)/pull/(%d+)", "gh#%1!%2")
str = str:gsub("https?://github.com/(.*)/discussions/(%d+)", "gh#%1!%2")
str = str:gsub("https?://github.com/(.*)/commit/(%w+)", function (r, i)
return "gh#" .. r .. "@" .. i:sub(1, 12)
end)
str = str:gsub("https?://gitlab.com/(.*)/issues/(%d+)", "gl#%1#%2")
-str = str:gsub("https?://gitlab.com/(.*)/pull/(%d+)", "gl#%1#%2")
+str = str:gsub("https?://gitlab.com/(.*)/pull/(%d+)", "gl#%1!%2")
str = str:gsub("https?://gitlab.com/(.*)/-/issues/(%d+)", "gl#%1#%2")
-str = str:gsub("https?://gitlab.com/(.*)/-/pull/(%d+)", "gl#%1#%2")
-str = str:gsub("https?://gitlab.com/(.*)/-/merge-requests/(%d+)", "gl#%1#%2")
+str = str:gsub("https?://gitlab.com/(.*)/-/pull/(%d+)", "gl#%1!%2")
+str = str:gsub("https?://gitlab.com/(.*)/-/merge-requests/(%d+)", "gl#%1!%2")
str = str:gsub("https?://sourceforge.net/support/tracker.php%?aid=(%d+)", "sh#%1")
str = str:gsub("https?://sf.net/support/tracker.php%?aid=(%d+)", "sh#%1")
str = str:gsub("https?://sourceforge.net/p/(.*)/patches/(%d+)/", "shp#%1#%2")