Bugtracker: Fix regression from previous commit.
This commit is contained in:
@ -23,7 +23,7 @@ import supybot
|
||||
import supybot.world as world
|
||||
from importlib import reload
|
||||
|
||||
__version__ = "4.8.0"
|
||||
__version__ = "4.8.1"
|
||||
__author__ = supybot.Author("Krytarik Raido", "krytarik", "krytarik@gmail.com")
|
||||
__contributors__ = {
|
||||
supybot.Author("Dennis Kaarsemaker", "Seveas", "dennis@kaarsemaker.net"): ['Original Author'],
|
||||
|
@ -549,7 +549,7 @@ class Bugtracker(callbacks.PluginRegexp):
|
||||
if duplicate and not self.is_ok(channel, network, tracker, bugid):
|
||||
return
|
||||
|
||||
bugtype = re.match(r'\S+/(feature-)?(?P<type>request|patch|todo|issue|pull|merge|ticket|commit)(_requests)?(e?s)?/([^\s?]*\?([^\s?&]+&)?id=)?[a-f0-9]+$', url)
|
||||
bugtype = re.match(r'\S+/(feature-)?(?P<type>request|patch|todo|issue|pull|merge|ticket|commit)(_requests)?(e?s)?/(\?id=)?[a-f0-9]+/?$', url)
|
||||
if do_tracker and tracker.trackertype not in ('github', 'gitlab', 'gitea', 'cgit'):
|
||||
if re.match(r'\S+/(bugs|feature-requests|patches|todo|issues|pulls?|merge_requests|tickets?|commits?)$', tracker.description):
|
||||
report = '%s %s' % (tracker.description, bugid)
|
||||
|
Reference in New Issue
Block a user