-
-
Notifications
You must be signed in to change notification settings - Fork 12
Closed
Labels
Description
Currently, ANSI escape codes are always stripped by this library. However, there are plenty of contexts where one might be interested in the 'real' character count of a string, but where ANSI escape codes do not have a special semantic meaning, and so stripping them would result in an incorrect character count.
IMO, the ANSI code stripping should either be opt-in, or possibly even considered out-of-scope for this module entirely - since one can also just call strip-ansi on the string before passing it in, or whichever stripping function is appropriate for their specific semantic context.
Reactions are currently unavailable