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

Better native Unicode emoji regex? #206

Open
eklem opened this issue Aug 6, 2023 · 1 comment
Open

Better native Unicode emoji regex? #206

eklem opened this issue Aug 6, 2023 · 1 comment
Assignees
Labels
question Further information is requested

Comments

@eklem
Copy link
Owner

eklem commented Aug 6, 2023

Chech out:
https://v8.dev/features/regexp-v-flag

Found on:
Whoop whoop!

Firefox 116 shipped a few days ago and with it, unicodeSets mode (//v) is one step closer to cross-browser support.

✅ Chrome (for a while)
✅ Firefox 116 (Aug 1)
🕐 Safari 17 (currently in beta)

Here more infos: https://v8.dev/features/regexp-v-flag

Be right back, I have to update some articles. 😅

Info graphic explaining how to use unicodeSets mode to match rendered Emojis in a regular expression. https://front-end.social/@stefan/110836214051044942

@eklem
Copy link
Owner Author

eklem commented Aug 8, 2023

Do it when it's available under a u-flag / u-mode:
tc39/proposal-regexp-v-flag#49

@eklem eklem self-assigned this Sep 8, 2023
@eklem eklem added the question Further information is requested label Sep 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

1 participant