mirror of
https://github.com/platformio/platformio-core.git
synced 2025-07-29 17:47:14 +02:00
Use "strip_ansi" from click module
This commit is contained in:
@ -205,4 +205,5 @@ def humanize_duration_time(duration):
|
||||
|
||||
|
||||
def strip_ansi_codes(text):
|
||||
return re.sub(r"\x1B\[\d+(;\d+){0,2}m", "", text)
|
||||
# pylint: disable=protected-access
|
||||
return click._compat.strip_ansi(text)
|
||||
|
Reference in New Issue
Block a user