Pārlūkot izejas kodu

URL exclusions: fix comment parsing

tags/v0.4
Ben Kurtovic pirms 5 gadiem
vecāks
revīzija
88f9c21111
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  1. +1
    -1
      earwigbot/wiki/copyvios/exclusions.py

+ 1
- 1
earwigbot/wiki/copyvios/exclusions.py Parādīt failu

@@ -95,7 +95,7 @@ class ExclusionsDB(object):

if source == "User:EarwigBot/Copyvios/Exclusions":
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:
url = re.sub(_RE_STRIP_PREFIX, "", match.group(1))
if url:


Notiek ielāde…
Atcelt
Saglabāt