Closed also closed 5 years ago
This is still an issue.
@milesj we're aware. The ticket is still open.
@Qix- Maybe people forget after almost a year.
I am using log-update
and experienced this issue there and tracked it up to here. Do you think this is an easy issue? I don't have any experience with the terminal or ansi but I can try to debug it in the future if it is easy.
@issuehunt has funded $60.00 to this issue. See it on IssueHunt
the input OK
will converted into
\u001b[47m \u001b[30mOK\u001b[39m \u001b[49m'
Maybe we don't need to split [47m \u001b
and [39m \u001b
. Will splitting space
but not followed by \u001b
help?
line 82 .split(' ')
become
.split(/\s(?!\u001b)/)
By using that regex the input OK GG
or
\u001b[47m \u001b[30mOK GG\u001b[39m \u001b[49m
will be splitted into
\u001b[47m \u001b[30mOK
GG\u001b[39m \u001b[49m
@sindresorhus has rewarded $54.00 to @stroncium. See it on IssueHunt