diff options
author | Matěj Cepl <mcepl@cepl.eu> | 2023-02-19 02:48:30 +0100 |
---|---|---|
committer | Matěj Cepl <mcepl@cepl.eu> | 2023-02-19 02:48:30 +0100 |
commit | 75b4834cb60b665ec206d21c42d414a59bf62229 (patch) | |
tree | 0ee41c198026ee5405723e836340311308f41398 | |
parent | e7bbebfb1d088d6efb30205e1f4d0e2cd6264e52 (diff) | |
download | vis-jump-75b4834cb60b665ec206d21c42d414a59bf62229.tar.gz |
Add gitlab pull requests.
-rwxr-xr-x | abbrevURL.lua | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/abbrevURL.lua b/abbrevURL.lua index b1c0c2d..cfc7b19 100755 --- a/abbrevURL.lua +++ b/abbrevURL.lua @@ -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") |