Browse Source

URL exclusions: fix comment parsing

tags/v0.4
Ben Kurtovic 5 years ago
parent
commit
88f9c21111
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):


if source == "User:EarwigBot/Copyvios/Exclusions": if source == "User:EarwigBot/Copyvios/Exclusions":
for line in data.splitlines(): for line in data.splitlines():
match = re.match(r"^\s*url\s*=\s*(?:\<nowiki\>\s*)?(.+?)\s*(?:\</nowiki\>\s*)?$", line)
match = re.match(r"^\s*url\s*=\s*(?:\<nowiki\>\s*)?(.+?)\s*(?:\</nowiki\>\s*)?(?:#.*?)?$", line)
if match: if match:
url = re.sub(_RE_STRIP_PREFIX, "", match.group(1)) url = re.sub(_RE_STRIP_PREFIX, "", match.group(1))
if url: if url:


Loading…
Cancel
Save