diff --git a/plugins/Sourceforge.py b/plugins/Sourceforge.py index 79730b4c8..f70600f0e 100644 --- a/plugins/Sourceforge.py +++ b/plugins/Sourceforge.py @@ -246,7 +246,7 @@ class Sourceforge(callbacks.PrivmsgCommandAndRegexp): _sfTitle = re.compile(r'Detail:(\d+) - ([^<]+)', 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+)+" + r"https?://(?:www\.)?(?:sourceforge|sf)\.net/tracker/(?:index\.php)?\?(?:&?func=detail|&?aid=\d+|&?group_id=\d+|&?atid=\d+){4}" if not self.snarfer: return url = match.group(0) diff --git a/test/test_Sourceforge.py b/test/test_Sourceforge.py index a430fb1fc..6f7f7243e 100644 --- a/test/test_Sourceforge.py +++ b/test/test_Sourceforge.py @@ -79,6 +79,8 @@ class SourceforgeTest(PluginTestCase, PluginDocumentation): # test that it works self.assertNotError('https://sourceforge.net/tracker/?' 'func=detail&atid=105470&aid=827260&group_id=5470') + self.assertNoResponse('https://sourceforge.net/tracker/?'\ + 'group_id=58965&atid=489447') def testDisablesfsnarfer(self): self.assertRegexp('http://sourceforge.net/tracker/index.php?'\