Just had to work this out for myself: a Unicode safe alternative to "string".split("") -
"







".match(/./gu)
Or is there a better way?
-
-
Replying to @100pxls
Fake “Unicode.” ↙️ Retweeted Chris Price
/u is EC6, will break for many old browsers. Use: .match(/([\ud800-\udbff][\udc00-\udfff]|.|\n)/g) https://twitter.com/100pxls/status/715104948921491456 … [
@100pxls]Fake “Unicode.” ↙️ added,
3 replies 1 retweet 3 likes
Replying to @FakeUnicode
@FakeUnicode I think you mean ES6 instead of EC6 @100pxls
9:34 AM - 30 Mar 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.