From f082fca720e11e9c4b78756c595af8861e32dd1e Mon Sep 17 00:00:00 2001 From: Ben Kurtovic Date: Fri, 18 Jan 2013 23:42:43 -0500 Subject: [PATCH] So re.MULTILINE is necessary for those rules. --- earwigbot/wiki/copyvios/exclusions.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/earwigbot/wiki/copyvios/exclusions.py b/earwigbot/wiki/copyvios/exclusions.py index d62087e..dbbe0c9 100644 --- a/earwigbot/wiki/copyvios/exclusions.py +++ b/earwigbot/wiki/copyvios/exclusions.py @@ -95,7 +95,7 @@ class ExclusionsDB(object): r"\*\s*Site:\s*(?:\[|\)?(?:https?:)?(?://)?(.*?)(?:\].*?|\.*?)?\s*$" ] for regex in regexes: - find = re.findall(regex, data, re.I) + find = re.findall(regex, data, re.I|re.M) [urls.add(url.lower().strip()) for url in find if url.strip()] return urls