diff options
Diffstat (limited to 'osurl')
-rwxr-xr-x | osurl | 18 |
1 files changed, 10 insertions, 8 deletions
@@ -6,21 +6,23 @@ local P,C,Cs,Cf,R = lpeg.P, lpeg.C, lpeg.Cs, lpeg.Cf, lpeg.R local tokens = { NONHASH = C((1 - P("#"))^1), -- any nonempty string not containing # NUM = C(R("09")^1), -- nonempty digit string - WORD = C(R("AZ","az","09","__")^1) -- nonempty word + WORD = C(R("AZ","az","09","__")^1), -- nonempty word + JIRID = C(R("AZ","az","09","--")^1) -- nonempty word } local patterns = { - ["bgo#%NUM"] = "http://bugzilla.gnome.org/show_bug.cgi?id=%1", + ["bgo#%NUM"] = "https://bugzilla.gnome.org/show_bug.cgi?id=%1", ["bpo#%NUM"] = "https://bugs.python.org/issue%1", - ["bko#%NUM"] = "http://bugzilla.kernel.org/show_bug.cgi?id=%1", - ["bmo#%NUM"] = "http://bugzilla.mozilla.org/show_bug.cgi?id=%1", - ["boo#%NUM"] = "http://bugzilla.opensuse.org/show_bug.cgi?id=%1", - ["bnc#%NUM"] = "http://bugzilla.novell.com/show_bug.cgi?id=%1", - ["bsc#%NUM"] = "http://bugzilla.suse.com/show_bug.cgi?id=%1", + ["bko#%NUM"] = "https://bugzilla.kernel.org/show_bug.cgi?id=%1", + ["bmo#%NUM"] = "https://bugzilla.mozilla.org/show_bug.cgi?id=%1", + ["boo#%NUM"] = "https://bugzilla.opensuse.org/show_bug.cgi?id=%1", + ["bnc#%NUM"] = "https://bugzilla.novell.com/show_bug.cgi?id=%1", + ["bsc#%NUM"] = "https://bugzilla.suse.com/show_bug.cgi?id=%1", ["bds#%NUM"] = "https://build.suse.de/request/show/%1", ["bdo#%NUM"] = "https://build.opensuse.org/request/show/%1", + ["jsc#%JIRID"] = "https://jira.suse.de/browse/%1", ["gh#%NONHASH#%WORD"] = "https://github.com/%1/issues/%2", ["lp#%NUM"] = "https://launchpad.net/bugs/%1", - ["rh#%NUM"] = "http://bugzilla.redhat.com/show_bug.cgi?id=%1", + ["rh#%NUM"] = "https://bugzilla.redhat.com/show_bug.cgi?id=%1", } -- turn "foo#%BLAH" into a pattern that matches everything literally except |