summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNEMESIS13cz <seke94@seznam.cz>2015-10-30 16:48:05 +0100
committerNEMESIS13cz <seke94@seznam.cz>2015-10-30 16:48:05 +0100
commit35fd76c7a89f5d8b07da2ee54abeba2bb2f359dc (patch)
treedf1046209d209b4142380a9146dcc2c28faabba6
parent743d42f71958b1a81dafebc9a6c3187b09a376cc (diff)
parent086eade43f18df65bee40ec7f1bd8c1f4bde2989 (diff)
Merge branch 'dev' of https://github.com/RedstonerServer/redstoner-utils into dev
-rw-r--r--helpers.py2
1 files changed, 1 insertions, 1 deletions
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):