Open misterdev opened 5 years ago
@misterdev Which issue does that fix? Is that in the opencollective postinstall
scenario?
Working with the print script sometimes the text is not well center.
The problem is that chalk.bold
(used here) adds the escape sequence \x1b[1m
to the string.
Inside the print this sequence is not matched by the regex and it's not removed. This causes the leftPaddingLength
to be incorrect resulting in an incorrect centering.
Before:
After:
Hi @znarf, sorry for the ping, do you think this will be considered? Otherwise, we can close it :)
It now matches also sequences with one digit
\x1b[
_m