From 086eade43f18df65bee40ec7f1bd8c1f4bde2989 Mon Sep 17 00:00:00 2001 From: Pepich Date: Fri, 30 Oct 2015 16:36:47 +0100 Subject: fixed colorify method --- helpers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/helpers.py b/helpers.py index dcf5cc3..898dea7 100644 --- a/helpers.py +++ b/helpers.py @@ -87,7 +87,7 @@ def colorify(text): """ replace &-codes with real color codes """ - return sub("&(?=[?\\da-fk-or])", u"\u00A7", "%s" % text) + return sub("&" + u"\u00A7", "&", "%s" % sub("&(?=[?\\da-fk-or])", u"\u00A7", "%s" % text)) def stripcolors(text): -- cgit v1.2.3