Changed the regexp for sfSnarfer to make it a little easier to read.

This commit is contained in:
Jeremy Fincher 2003-10-30 00:13:00 +00:00
parent 2ed2f6a5ff
commit 646e41bd53
1 changed files with 2 additions and 1 deletions

View File

@ -242,7 +242,8 @@ class Sourceforge(callbacks.PrivmsgCommandAndRegexp, plugins.Toggleable):
_sfTitle = re.compile(r'Detail:(\d+) - ([^<]+)</title>', re.I)
_linkType = re.compile(r'(\w+ \w+|\w+): Tracker Detailed View', re.I)
def sfSnarfer(self, irc, msg, match):
r"https?://(?:www\.)?(?:sourceforge|sf)\.net/tracker/(?:index\.php)?\?(?:&?func=detail|&?aid=\d+|&?group_id=\d+|&?atid=\d+){4}"
r"https?://(?:www\.)?(?:sourceforge|sf)\.net/tracker/" \
r".*\?(?:&?func=detail|&?aid=\d+|&?group_id=\d+|&?atid=\d+){4}"
if not self.toggles.get('tracker', channel=msg.args[0]):
return
url = match.group(0)