Conversation
commit: |
✅ Deploy Preview for prettier ready!Built without sensitive environment variables
To edit notification comments on pull requests, go to your Netlify project configuration. |
|
Should it be fixed on |
|
No. "👨🏻👩🏻👧🏻👦🏻".match(/\p{RGI_Emoji}/gv)
// [ '👨🏻', '👩🏻', '👧🏻', '👦🏻' ]
"👨👩👧👦".match(/\p{RGI_Emoji}/gv)
// [ '👨👩👧👦' ]Family sequences with skin tone modifiers were never added to RGI, unlike handshake or holding-hands. Asking The We need display width per grapheme cluster, not RGI membership. |
|
I'll wait for mathiasbynens/emoji-regex#122 |
Can't do it since we support Node.js v14 |
|
Right, Node 14 rules out |
Description
emoji-regexmatches each part of a skin tone modified ZWJ sequence on its own, so👨🏻👩🏻👧🏻👦🏻was measured as four separate emojis and GFM tables ended up padded to eight columns instead of two. The same sequence without the skin tone modifiers matches as a whole and was already correct.Joining the matches back over
U+200Dbefore measuring makes the whole sequence count as one double width emoji.Fixes #20105
Checklist
docs/directory).changelog_unreleased/*/XXXX.mdfile followingchangelog_unreleased/TEMPLATE.md.