Forget docstring and to remove the old regexp.

This commit is contained in:
Jeremy Fincher 2003-09-04 17:33:04 +00:00
parent 64459c93ec
commit 708e8e553b

View File

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