From 86eb75f868b83656b36a8b7ee794fc53ece9ec2b Mon Sep 17 00:00:00 2001 From: Ben Kurtovic Date: Tue, 10 Jul 2012 23:39:04 -0400 Subject: [PATCH] fix {{unsupported}} --- earwigbot/commands/dictionary.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/earwigbot/commands/dictionary.py b/earwigbot/commands/dictionary.py index c20f299..f230eea 100644 --- a/earwigbot/commands/dictionary.py +++ b/earwigbot/commands/dictionary.py @@ -130,7 +130,8 @@ class Dictionary(Command): substitutions = [ ("", ""), ("\[\[[^\]|]*?\|([^\]|]*?)\]\]", r"\1"), - ("\{\{(.*?) of\|(.*?)\}\}", r"\1 of \2."), + ("\{\{unsupported\|(.*?)\}\}", r"\1"), + ("\{\{(.*?) of\|(.*?)(\||\}\})", r"\1 of \2."), ("\{\{w\|(.*?)\}\}", r"\1"), ("\{\{surname(.*?)\}\}", r"A surname."), ("\{\{given name\|(.*?)(\||\}\})", r"A \1 given name."),