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

fix(commons): avoid unicode regex encoding in axe.min.js #2024

Merged
merged 3 commits into from Feb 10, 2020
Merged

Conversation

jeeyyy
Copy link
Contributor

@jeeyyy jeeyyy commented Feb 6, 2020

Street creds for @AdnoC for pairing on this :)

See related issue - #2023 for description.

In this fix, we create a RegExp literal instead of creating a RegExp from a string, which changes uglify behaviour.

This issue is not currently tested by any of the test coverage we have, because all of them use axe.js over a the minified axe.min.js. This issue was identified under windows ecosystem when executing axe from attest-java using the minified source.

Closes issue:

Reviewer checks

Required fields, to be filled out by PR reviewer(s)

  • Follows the commit message policy, appropriate for next version
  • Code is reviewed for security

@jeeyyy jeeyyy requested a review from a team as a code owner February 6, 2020 14:12
@jeeyyy jeeyyy added the fix Bug fixes label Feb 6, 2020
@jeeyyy jeeyyy changed the title fix: return unicode as literal instead of a RegExp object fix(commons): return unicode as literal instead of a RegExp object Feb 6, 2020
@WilcoFiers WilcoFiers changed the title fix(commons): return unicode as literal instead of a RegExp object fix(commons): avoid unicode regex encoding in axe.min.js Feb 10, 2020
@WilcoFiers WilcoFiers merged commit 504d912 into develop Feb 10, 2020
@WilcoFiers WilcoFiers deleted the fix-2023 branch February 10, 2020 16:53
straker pushed a commit that referenced this pull request Feb 10, 2020
* fix: return unicode as literal instead of a regexp object

* run fmt

* reformat comments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
fix Bug fixes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants