We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
const emojiRegex = require('emoji-regex'); const text = ` \u{39}\u20E3\uFE0F \u{39}\uFE0F\u20E3 `; const regex = emojiRegex(); for (const match of text.matchAll(regex)) { const emoji = match[0]; console.log(`Matched sequence ${ emoji } — code points: ${ [...emoji].length }`); }
Output:
Matched sequence 9⃣ — code points: 2 Matched sequence 9️⃣ — code points: 3
U+FE0F(VS16) reverses the order here, and I'm not sure how the Emoji spec defines this situation.
U+FE0F
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Output:
U+FE0F
(VS16) reverses the order here, and I'm not sure how the Emoji spec defines this situation.The text was updated successfully, but these errors were encountered: