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

throw error: "Invalid regular expression" in Safari #188

Open
maplor opened this issue Sep 27, 2021 · 1 comment
Open

throw error: "Invalid regular expression" in Safari #188

maplor opened this issue Sep 27, 2021 · 1 comment

Comments

@maplor
Copy link

maplor commented Sep 27, 2021

In version 4.20.0 & 4.21.0, this code will throw error in Safari:

const tokenRE = /(?=[.[\]])|(?<=[.[\]])/g;

const tokenRE = /(?=[.[\]])|(?<=[.[\]])/g;

error message:
SyntaxError: Invalid regular expression: invalid group specifier name

@greggman
Copy link
Owner

thank you for the bug report.

2a3aeff

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