From 52709af35a04a7662a84083a3f1394f64973cea8 Mon Sep 17 00:00:00 2001 From: Matěj Cepl Date: Thu, 21 Mar 2019 18:13:34 +0100 Subject: feat(osurl): add jira.suse.de Also, switch what you can to HTTPS. --- osurl | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) (limited to 'osurl') diff --git a/osurl b/osurl index 8840558..b9df666 100755 --- a/osurl +++ b/osurl @@ -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 -- cgit