mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-12-25 04:02:46 +01:00
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:
|
else:
|
||||||
return (fg, None)
|
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')
|
_unColorRe = re.compile('(?:\x03\\d{1,2},\\d{1,2})|\x03\\d{1,2}|\x03|\x0F')
|
||||||
def unColor(s):
|
def unColor(s):
|
||||||
|
"""Removes the color from a string."""
|
||||||
return _unColorRe.sub('', s)
|
return _unColorRe.sub('', s)
|
||||||
|
|
||||||
def isValidArgument(s):
|
def isValidArgument(s):
|
||||||
|
Loading…
Reference in New Issue
Block a user