mirror of https://github.com/Mikaela/Limnoria.git
Forget docstring and to remove the old regexp.
This commit is contained in:
parent
64459c93ec
commit
708e8e553b
|
@ -266,9 +266,9 @@ def canonicalColor(s, bg=False, shift=0):
|
|||
else:
|
||||
return (fg, None)
|
||||
|
||||
_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):
|
||||
"""Removes the color from a string."""
|
||||
return _unColorRe.sub('', s)
|
||||
|
||||
def isValidArgument(s):
|
||||
|
|
Loading…
Reference in New Issue