Browse Source

<nowiki> tags in exclusion lists are optional.

tags/v0.2
Ben Kurtovic 12 years ago
parent
commit
ab216fb834
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

@@ -91,7 +91,7 @@ class ExclusionsDB(object):
return urls return urls


regexes = [ regexes = [
r"url\s*=\s*<nowiki>(?:https?:)?(?://)?(.*)</nowiki>",
r"url\s*=\s*(<nowiki>)?(?:https?:)?(?://)?(.*)(</nowiki>)?",
r"\*\s*Site:\s*(?:\[|\<nowiki\>)?(?:https?:)?(?://)?(.*)(?:\]|\</nowiki\>)?" r"\*\s*Site:\s*(?:\[|\<nowiki\>)?(?:https?:)?(?://)?(.*)(?:\]|\</nowiki\>)?"
] ]
for regex in regexes: for regex in regexes:


Loading…
Cancel
Save