-
Notifications
You must be signed in to change notification settings - Fork 82
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
Issue 151: Issue with Js sanitizer #157
Conversation
@mxro Pls review, Thanks |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think the best here is to remove this whole test - since it is not relevant any more - I will do so after merge, if there is nothing else I find that would need to be addressed before merge.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Wow, I love it, great work 🚀
I will merge to master and validate all is good there and report back here.
Looks like it all comes from |
On my local (Windows) these tests are failing:
Could also have something to do with the performance, so maybe a good place to have a look regarding the performance. |
All your changes are in master, but before I release to Maven central, would like to address as per comments above:
Would be great if you could have a look at these, since otherwise may take me a while to get to it. For any changes, would be great if you could raise a new PR. I also added a workflow to build and test the JavaScript you can run as well in your fork! |
@mxro |
To solve the serious performance problem of regex injection way in JsSanitizer
In this MR, I use js libs to convert js code into AST and then inject code, and the performance is much better, pls review
ps: The injectJs folder project is used to generate the file inject.js