@mathias Hey! What would you recommend for unicode-safe text truncation in JS?
-
-
Replying to @tgvashworth
@phuunet@mathias would this work? const truncate = (string, length) => Array.from(string).slice(0, length).join("");1 reply 0 retweets 0 likes -
Replying to @cameronhunter
@phuunet@mathias Quickly run into issues with multi-character emoji such as regional flags and fitzpatrick diversity modifiers.1 reply 0 retweets 0 likes -
Replying to @cameronhunter
Mathias Bynens Retweeted Mathias Bynens
Mathias Bynens added,
1 reply 0 retweets 1 like -
Replying to @cameronhunter
@cameronhunter@phuunet IMHO the latest available Unicode version should be used at all times + semver for Unicode version bumps.1 reply 0 retweets 0 likes -
Replying to @mathias1 reply 0 retweets 0 likes
-
Replying to @cameronhunter
@cameronhunter@mathias If I stuck up a repo + a little implementation, would you two be up for code review/collab?3 replies 0 retweets 0 likes
Replying to @tgvashworth
@phuunet Sure thing! +@cameronhunter
1:43 PM - 1 Feb 2016
0 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.