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

Support v flag in JS regexps #18727

Closed
wants to merge 1 commit into from

Conversation

nicolo-ribaudo
Copy link

I just added it to the this.options.ecmaVersion() >= 9 branch because it was introduced in ES2024, but it seems like you stopped tracking exact ECMAScript version since ES2020.

Fixes #18721

@erik-krogh
Copy link
Contributor

Thanks for this.
Yes, we don't track ECMAScript versions as much as we used to.

As for your suggested change, I would do it in a sightly different way, and we also have some in-progress (but paused) work for supporting the v flag, so I opened an a more complete PR by pulling in parts of that paused work: #18794.

@erik-krogh
Copy link
Contributor

Thanks again.

I've merged the above linked PR that implements the same thing.
It should land in a CodeQL release within a few weeks.

I'm closing this PR as it's now redundant.

@erik-krogh erik-krogh closed this Feb 17, 2025
@nicolo-ribaudo nicolo-ribaudo deleted the patch-2 branch February 17, 2025 14:09
@nicolo-ribaudo
Copy link
Author

Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

False positive (javascript): "Invalid regular expression flag" for v flag
2 participants