- From: 一丝 via GitHub <sysbot+gh@w3.org>
- Date: Tue, 24 Sep 2024 15:18:33 +0000
- To: public-css-archive@w3.org
I'm not sure that the `v` flag introduced in JS's regulars helps, in the case of emoji, which contains the following type field:
- Basic_Emoji
- Emoji_Keycap_Sequence
- RGI_Emoji_Modifier_Sequence
- RGI_Emoji_Flag_Sequence
- RGI_Emoji_Tag_Sequence
- RGI_Emoji_ZWJ_Sequence
- RGI_Emoji
See:
- https://v8.dev/features/regexp-v-flag
- https://unicode.org/Public/emoji/16.0/emoji-sequences.txt
```js
/^\p{Emoji}$/v.test('👨❤️👨')
// → false ❌
/^\p{RGI_Emoji}$/v.test('👨❤️👨')
// → true ✅
```
--
GitHub Notification of comment by yisibl
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/4573#issuecomment-2371610513 using your GitHub account
--
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Tuesday, 24 September 2024 15:18:34 UTC