to_case() - Fail with words with accent mark
trapalleiro-git opened this issue · comments
trapalleiro-git commented
to_case() fail with words With accent mark. Example: música moderna.
Rutrum commented
Thank you for bringing this up. I made the mistake of manually stepping through bytes of strings, when they may not necessarily be character boundaries for non-ascii characters. The algorithm I made breaks character boundaries in this case. The solution is to integrate the "unicode-segmentation" library to step through strings without failing. This is in development, and will update this issue when it is resolved. Thanks again for the issue.