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

Improve candidate detection in minified JS arrays (without spaces) #12396

Merged
merged 5 commits into from
Nov 10, 2023

Conversation

RobinMalfait
Copy link
Contributor

This PR improves the default extractor's RegEx to ensure that we can detect candidates in minified
JS arrays (where no spaces are used between elements of the array).

This was already working in the Oxide parser.

Fixes: #12371

@RobinMalfait RobinMalfait merged commit a5a6158 into master Nov 10, 2023
10 checks passed
@RobinMalfait RobinMalfait deleted the fix/issue-12371 branch November 10, 2023 22:06
thecrypticace pushed a commit that referenced this pull request Dec 4, 2023
…12396)

* add test to verify `["util1","util2"]` works

* update extractor regex, to reduce valid values in the arbitrary value part

Co-authored-by: Autom <mijnnaamis2112@hotmail.com>

* add special case with deeply nested `[]`

* update changelog

* move oxide changelog itemsto the bottom

---------

Co-authored-by: Autom <mijnnaamis2112@hotmail.com>
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

Successfully merging this pull request may close these issues.

Array with comma separated arbitrary value classes in JS does not generate as expected
1 participant