Closed sindresorhus closed 7 years ago
I guess these are false positives too then https://github.com/chalk/slice-ansi/blob/master/test.js#L28-L30?
I think we need to make sure we're not inside a escape here https://github.com/chalk/slice-ansi/blob/master/index.js#L66 before wrapping.
Notice how it prepends a lot of moot
\u001b[31m
to the output.I added a failing skipped test: https://github.com/chalk/slice-ansi/commit/f725d7677cb8b734f63b39fbbabd7261fe3be821
// @dthree