Works or B0rks?
```
/\uD83D�/u.test('
')
```
Surrogate pairs are trouble for regex class ranges with and without u-flag. You can have
, which is two (16-bit) code units forming the code point x1f4a9. You can encode it as \u{1f4a9}, even as \uD83D\uDCA9. But can you mix it?
-
-
So this adds the 5 groups to the list and calls it a day? Why is this (only) stage 2? Adding groups to the list should be a no-brainer... :/ Could bikeshed over something like `/\p{emoji=...}/` but whatever

-
Extending the list with properties *is* a no-brainer, and we do it each year when the Unicode Standard updates. However, the properties in *this* proposal behave a little different than anything we currently support. Hence the separate proposal. The readme should clarify it
- 3 more replies
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.