From e5b857d20c7eea7baad79df72ad3ad4677181b6e Mon Sep 17 00:00:00 2001 From: Ben Kurtovic Date: Tue, 10 Jul 2012 22:05:13 -0400 Subject: [PATCH] Er, fix that. --- 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 8f29fb8..cc0d7f4 100644 --- a/earwigbot/commands/dictionary.py +++ b/earwigbot/commands/dictionary.py @@ -110,8 +110,8 @@ class Dictionary(Command): for part, fullname in parts_of_speech.iteritems(): regexes = [ "{0}\s*{1}\s*{0}".format(blocks, fullname), - "{0}\s*\{\{{1}\}\}\s*{0}".format(blocks, fullname), - "{0}\s*\{\{{1}\}\}\s*{0}".format(blocks, fullname.lower()), + blocks + "\s*\{\{" + fullname + "\}\}\s*" + blocks, + blocks + "\s*\{\{" + fullname.lower() + "\}\}\s*" + blocks, ] for regex in regex: if re.search(regex, section):