diff options
Diffstat (limited to 'abbrevURL')
-rwxr-xr-x | abbrevURL | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -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") |