.@BrendanEich can i ask you a js Q? all javascript string methods break when string contains emoji. is there plan to fix this? and how?
-
-
unicode normalization and combining char are a different level of problem, that no lang can easily say they have a solution. but all string methods broken for string containing simple chars is the problem of js, that all other modern langs don't have.
-
JavaScript *does* have a solution for normalization: String.prototype.normalize.
- 1 more reply
New conversation -
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.
in China).
You can either use an external library or maintain a fragile mechanism regex:
".length===2
"