@mathias Hey! What would you recommend for unicode-safe text truncation in JS?
-
-
Replying to @tgvashworth
@phuunet I’m not aware of any libraries that do this yet, but you could just .slice, then check if last code unit is a high surrogate2 replies 0 retweets 0 likes
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.
JavaScript, HTML, CSS, HTTP, performance, security, Bash, Unicode, i18n, macOS.