chalk / slice-ansi

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

Add failing test for slicing strings styled with background and foreground color #21

Closed slammayjammay closed 5 years ago

slammayjammay commented 5 years ago

Demonstrates the failing behavior of something like this:

sliceAnsi(chalk.bgGreen.black('test'), 0, 1)

For https://github.com/chalk/slice-ansi/issues/22