Browse Source

So re.MULTILINE is necessary for those rules.

tags/v0.2
Ben Kurtovic 12 years ago
parent
commit
f082fca720
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      earwigbot/wiki/copyvios/exclusions.py

+ 1
- 1
earwigbot/wiki/copyvios/exclusions.py View File

@@ -95,7 +95,7 @@ class ExclusionsDB(object):
r"\*\s*Site:\s*(?:\[|\<nowiki\>)?(?:https?:)?(?://)?(.*?)(?:\].*?|\</nowiki\>.*?)?\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



Loading…
Cancel
Save