fixed colorify method

This commit is contained in:
Pepich
2015-10-30 16:36:47 +01:00
parent b369ea7557
commit 086eade43f

View File

@@ -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):