The pattern is: r'\033\[((?:\d|;)*)([a-zA-Z])'.
It is a little not full: \033[?25l and \033[?25h ANSI sequences used by cursor show/hide are not covered by the pattern.
I've changed it to r'\033\[([;\?0-9]*)([a-zA-Z])', it fixes my problem.
The text was updated successfully, but these errors were encountered:
The function uses
strip_ansi()
which in turn depends on_ansi_re
regex: https://github.com/pallets/click/blob/master/click/_compat.py#L18The pattern is:
r'\033\[((?:\d|;)*)([a-zA-Z])'
.It is a little not full:
\033[?25l
and\033[?25h
ANSI sequences used by cursor show/hide are not covered by the pattern.I've changed it to
r'\033\[([;\?0-9]*)([a-zA-Z])'
, it fixes my problem.The text was updated successfully, but these errors were encountered: