From 3de52a915b8b8a61819ef750373ff081aed78090 Mon Sep 17 00:00:00 2001 From: Ben Kurtovic Date: Wed, 11 Jul 2012 16:01:11 -0400 Subject: [PATCH] Strip reference tags. --- earwigbot/commands/dictionary.py | 1 + 1 file changed, 1 insertion(+) diff --git a/earwigbot/commands/dictionary.py b/earwigbot/commands/dictionary.py index 8a76efc..305176c 100644 --- a/earwigbot/commands/dictionary.py +++ b/earwigbot/commands/dictionary.py @@ -129,6 +129,7 @@ class Dictionary(Command): def parse_body(self, body): substitutions = [ ("", ""), + ("(.*?)", ""), ("\[\[[^\]|]*?\|([^\]|]*?)\]\]", r"\1"), ("\{\{unsupported\|(.*?)\}\}", r"\1"), ("\{\{(.*?) of\|([^}|]*?)(\|(.*?))?\}\}", r"\1 of \2."),