Skip to content
New issue

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

Determine emoji type? #106

Closed
GavanWilhite opened this issue Mar 15, 2023 · 2 comments
Closed

Determine emoji type? #106

GavanWilhite opened this issue Mar 15, 2023 · 2 comments

Comments

@GavanWilhite
Copy link

So unfortunately fluent emojis don't include country flags for "Microsoft reasons".

It would be amazing to be able to detect "country flag" emojis specifically. Any hope of being able to do this with emoji-regex?

@mathiasbynens
Copy link
Owner

This use case is a bit too specific for the emoji-regex project, which aims to match all emoji.

Luckily, it's possible to do what you want with the new RegExp v flag in JavaScript. See the example here: https://v8.dev/features/regexp-v-flag#union:~:text=Another%20example%20is%20matching%20all%20commonly%2Dused%20flag%20emoji Babel supports transpiling it.

@GavanWilhite
Copy link
Author

GavanWilhite commented Mar 15, 2023 via email

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

No branches or pull requests

2 participants