Bugtracker: Fix regression in bug detection.

This commit is contained in:
Krytarik Raido
2020-05-14 04:23:04 +02:00
parent 0830407afa
commit cd4cd70afa
2 changed files with 2 additions and 2 deletions

View File

@ -372,7 +372,7 @@ class Bugtracker(callbacks.PluginRegexp):
# Get tracker name
bt = [x.lower() for x in match.group('bt').split()]
sure_bug = re.match(r"(?P<type>bug|ticket|issue|pull|pr|merge|mr)('?s)?", bt[-1])
sure_bug = re.match(r"^(?P<type>bug|ticket|issue|pull|pr|merge|mr)('?s)?$", bt[-1])
# Get bug type
if sure_bug: