From be85dbb72d414bdb95bc5ee9583edf6ac63cae55 Mon Sep 17 00:00:00 2001 From: Ben Kurtovic Date: Tue, 10 Jul 2012 22:14:44 -0400 Subject: [PATCH] Perhaps I should just give up. --- earwigbot/commands/dictionary.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/earwigbot/commands/dictionary.py b/earwigbot/commands/dictionary.py index e77f186..533bfb4 100644 --- a/earwigbot/commands/dictionary.py +++ b/earwigbot/commands/dictionary.py @@ -111,7 +111,7 @@ class Dictionary(Command): fullnames = [basename, "\{\{" + basename + "\}\}", "\{\{" + basename.lower() + "\}\}"] for fullname in fullnames: - regex = blocks + "\s*\{\{" + fullname + "\}\}\s*" + blocks + regex = blocks + "\s*" + fullname + "\s*" + blocks if re.search(regex, section): regex = blocks + "\s*" + fullname regex += "\s*{0}(.*?)(?:(?:{0})|\Z)".format(blocks)