From b48af48de44eb675f25a93ea164e55c69e827f5f Mon Sep 17 00:00:00 2001 From: Ben Kurtovic Date: Thu, 28 Sep 2017 10:07:56 -0500 Subject: [PATCH] wikiproject_tagger: Fix regex for wikiproject banner shells. --- earwigbot/tasks/wikiproject_tagger.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/earwigbot/tasks/wikiproject_tagger.py b/earwigbot/tasks/wikiproject_tagger.py index 250608c..a23eb3a 100644 --- a/earwigbot/tasks/wikiproject_tagger.py +++ b/earwigbot/tasks/wikiproject_tagger.py @@ -383,7 +383,7 @@ class WikiProjectTagger(Task): def get_banner_shell(self, code): """Return the banner shell template within *code*, else ``None``.""" - regex = r"^\{\{\s*((WikiProject|WP)[ _]?Banner[ _]?S(hell)?|W(BPS|PBS|PB)|Shell)" + regex = r"^\{\{\s*((WikiProject|WP)[ _]?Banner[ _]?S(hell)?|W(BPS|PBS|PB)|Shell)\s*(\||\}\})" shells = code.filter_templates(matches=regex) if not shells: shells = code.filter_templates(matches=regex, recursive=True)