chalk / slice-ansi

Slice a string with ANSI escape codes
MIT License
47 stars 21 forks source link

Add a failing test for extra ansi escapes #23

Closed vadimdemedes closed 5 years ago

vadimdemedes commented 5 years ago

For some reason when there's a space or multiple spaces at the end, slice-ansi adds closing escape (\u001b[39m) at the end of the string.

sindresorhus commented 5 years ago

Can you open an issue too, so we can track it? And comment the issue number above the test.

vadimdemedes commented 5 years ago

Done.