From ab216fb834f6a3c89e04dc34da768fc8f4ba27d0 Mon Sep 17 00:00:00 2001 From: Ben Kurtovic Date: Thu, 17 Jan 2013 17:30:57 -0500 Subject: [PATCH] tags in exclusion lists are optional. --- 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 0cab1e3..227265e 100644 --- a/earwigbot/wiki/copyvios/exclusions.py +++ b/earwigbot/wiki/copyvios/exclusions.py @@ -91,7 +91,7 @@ class ExclusionsDB(object): return urls regexes = [ - r"url\s*=\s*(?:https?:)?(?://)?(.*)", + r"url\s*=\s*()?(?:https?:)?(?://)?(.*)()?", r"\*\s*Site:\s*(?:\[|\)?(?:https?:)?(?://)?(.*)(?:\]|\)?" ] for regex in regexes: