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

zod@3.21.4 fails on firefox 68 : invalid identity escape in regular expression #2302

Closed
mfo opened this issue Apr 6, 2023 · 3 comments
Closed
Labels
stale No activity in last 60 days

Comments

@mfo
Copy link

mfo commented Apr 6, 2023

Hi everyone,

thanks for this awesome project.

Unfortunately I have to report a bug (minor? maybe?). But I'm working on a project that requires a large compatibility spectrum, up to ffx68.

Unfortunatelly ffx68 raises the following error:
Maybe it's linked to :

const emojiRegex = /^(\p{Extended_Pictographic}|\p{Emoji_Component})+$/u;
?

Downgrading to zod@3.20.2 fixed it.

Best

@tchak
Copy link

tchak commented Apr 6, 2023

It looks like this regex was introduced in this PR #2090

@stale
Copy link

stale bot commented Jul 9, 2023

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@colinux
Copy link

colinux commented Oct 9, 2023

Fixed in 3.22.4 9340fd5

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
stale No activity in last 60 days
Projects
None yet
Development

No branches or pull requests

3 participants