diff options
author | Matěj Cepl <mcepl@cepl.eu> | 2019-03-21 18:13:34 +0100 |
---|---|---|
committer | Matěj Cepl <mcepl@cepl.eu> | 2024-03-28 16:54:12 +0100 |
commit | 52709af35a04a7662a84083a3f1394f64973cea8 (patch) | |
tree | a2a0c9c8de08f7c4ba8c2f0d12c6c41b277bb5ee /osurl | |
parent | 77948ded5e3e9b99cc9b3a8aea2a53775de8e5bb (diff) | |
download | vim-suse-changes-52709af35a04a7662a84083a3f1394f64973cea8.tar.gz |
feat(osurl): add jira.suse.de
Also, switch what you can to HTTPS.
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 |