From 410c7b36429d2d604fee0a0a1898e9429daf1408 Mon Sep 17 00:00:00 2001 From: Ben Kurtovic Date: Tue, 10 Jul 2012 22:12:38 -0400 Subject: [PATCH] Oh god this is pathetic. --- earwigbot/commands/dictionary.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/earwigbot/commands/dictionary.py b/earwigbot/commands/dictionary.py index ab2db49..e77f186 100644 --- a/earwigbot/commands/dictionary.py +++ b/earwigbot/commands/dictionary.py @@ -108,8 +108,8 @@ class Dictionary(Command): blocks = "=" * (level + 1) defs = [] for part, basename in parts_of_speech.iteritems(): - fullnames = [fullname, "\{\{" + fullname + "\}\}", - "\{\{" + fullname.lower() + "\}\}"] + fullnames = [basename, "\{\{" + basename + "\}\}", + "\{\{" + basename.lower() + "\}\}"] for fullname in fullnames: regex = blocks + "\s*\{\{" + fullname + "\}\}\s*" + blocks if re.search(regex, section):