Fix the snarfer re so that it does match extraneous text

This commit is contained in:
James Vega 2003-10-31 22:48:43 +00:00
parent 15b18edc11
commit fcd4919bab
1 changed files with 1 additions and 1 deletions

View File

@ -168,7 +168,7 @@ class Bugzilla(callbacks.PrivmsgCommandAndRegexp, plugins.Toggleable):
irc.reply(msg, 'Defined bugzillae: %s' % ' '.join(results))
return
def bzSnarfer(self, irc, msg, match):
r"(.*)/show_bug.cgi\?id=([0-9]+)"
r"(http://\S+)/show_bug.cgi\?id=([0-9]+)"
if not self.toggles.get('bug', channel=msg.args[0]):
return
queryurl = '%s/xml.cgi?id=%s' % (match.group(1), match.group(2))