Bugtracker: Fix bugSnarfer regex to (finally) detect "tracker: #number" format

PackageInfo: Force apt-file to i386 architecture, as update_apt_file only grabs that anyway
This commit is contained in:
tsimpson
2012-09-27 13:16:42 +01:00
parent 0e9d2e292b
commit b038dca49c
2 changed files with 2 additions and 2 deletions

View File

@ -327,7 +327,7 @@ class Bugtracker(callbacks.PluginRegexp):
list = wrap(list, [additional('text')])
def bugSnarfer(self, irc, msg, match):
r"""\b(?P<bt>(([a-z0-9]+)?\s+bugs?|[a-z0-9]+):?)\s+#?(?P<bug>\d+(?!\d*[\-\.]\d+)((,|\s*(and|en|et|und|ir))\s*#?\d+(?!\d*[\-\.]\d+))*)"""
r"""\b(?P<bt>(([a-z0-9]+)?\s+bugs?|[a-z0-9]+)):?\s+#?(?P<bug>\d+(?!\d*[\-\.]\d+)((,|\s*(and|en|et|und|ir))\s*#?\d+(?!\d*[\-\.]\d+))*)"""
channel = ircutils.isChannel(msg.args[0]) and msg.args[0] or None
if not self.registryValue('bugSnarfer', channel):
return