mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-30 14:59:34 +01:00
Fixed unColor to be right.
This commit is contained in:
parent
fff4a7d864
commit
64459c93ec
@ -266,7 +266,8 @@ def canonicalColor(s, bg=False, shift=0):
|
||||
else:
|
||||
return (fg, None)
|
||||
|
||||
_unColorRe = re.compile('(\x0F|\x03(?:\\d+|\\d+,\\d+)?)')
|
||||
_unColorRe = re.compile('\x0F|(?:\x03(?:\\d+|\\d+,\\d+)?)')
|
||||
_unColorRe = re.compile('(?:\x03\\d{1,2},\\d{1,2})|\x03\\d{1,2}|\x03|\x0F')
|
||||
def unColor(s):
|
||||
return _unColorRe.sub('', s)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user