-
-
Notifications
You must be signed in to change notification settings - Fork 201
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
EMOJI_REGEX throws Invalid regular expression flags on node v18 #599
Comments
The bigger question is whether we should stick with the current code and force people to upgrade to Node.js v20. I don't plan to implement a try/catch workaround, but I can consider not using this feature until v2 of Valibot to give devs more time. |
I advise keeping the old way.
Also, you can how check ufo handled similar issue with regex unjs/ufo#224 |
Thanks for your research! Since this regex is not too important, I think I will follow your recommendation. |
This is fixed in v0.31.0-rc.4 |
Hello, the following line breaks projects running on node 18
Node js 18 does not support regex /v flag so node throws an error
Easy fix:
The text was updated successfully, but these errors were encountered: