printable-characters
printable-characters copied to clipboard
A little helper for handling strings containing zero width characters, ANSI styling, whitespaces, newlines, 💩, etc.
`first` does very strange things when given simple string with empty lines: ```` aaaaaaaaa bbbbbbbbb ccccccccc ddddddddd eeeeeeeee ```` For one, it certainly returns more than `n` characters. This breaks...
Adds mongolian vowel separator to `zeroWidthCharacterExceptNewline` Regex pattern. Include tests for the character in the test suite
## Summary This PR adds support for the Mongolian Vowel Separator (U+180E) as a zero-width character in the regex patterns used by the library. ## Changes Added `\u180e` to the...
Include the whitespace character U+180E in possible chars to match in the zeroWidthCharacterExceptNewline variable.