chalk / slice-ansi

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

Fix weird null issue #19

Closed schani closed 5 years ago

Qix- commented 6 years ago

Hello - could you explain the bug please?

schani commented 6 years ago

@Qix- That function is mixing undefined and null, and you end up with the string null in the result sometimes - see test case.

Qix- commented 6 years ago

Gotcha, thank you :)