You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@soundasleep – Thanks a bunch for reporting this! I apologize for the delayed response!I will try to fix this asap. If you have any ideas on a good approach for handling this, I would love to hear 🍻
I'm not an expert on Javascript strings, but it might depend on what the native format for Javascript strings are (apparently UTF-16-ish?), if there are any libraries to deal with UTF-8 substring (unicode-substring?), and how much performance drop your users are OK with... maybe create a separate smart-truncate-utf8 project, or a separate require(), or just add a note to the README?
Not sure how you could resolve this, but it looks like smart-truncate does not play nicely with UTF-8...
It might be helpful to add a note in the README that it doesn't play nicely with UTF-8.
The text was updated successfully, but these errors were encountered: