chalk / slice-ansi

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

Make sure astral symbols is counted as a single character #10

Closed kevva closed 7 years ago

kevva commented 7 years ago

Should fix the conflict between full width characters and surrogate pairs.

sindresorhus commented 7 years ago

Awesome! Thanks for fixing all this Kevin :)