Skip to content

Conversation

@sindresorhus
Copy link
Owner

Fixes #67

@sindresorhus
Copy link
Owner Author

// @fisker

index.js Outdated
// - ZWJ sequences with 2+ Extended_Pictographic (e.g., ❤‍🔥, 🏳‍🌈, ⛹‍♂)
// - Keycap sequences (e.g., #⃣, 0⃣)
const zwjRegex = /\u200D/;
const validKeycapRegex = /^[\d#*].*\u20E3/;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shouldn't this regexp be /^[\d#*]\u20E3/?

Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed in cdefd92

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Should "heart on fire" without VS16 count width of 2?

3 participants