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

feat: Export stripWhitespace function for direct string minification #237

Merged
merged 2 commits into from Aug 7, 2022

Conversation

maxmilton
Copy link
Owner

No description provided.

.replace(/> #(\w+) </g, '>#$1<');

if (!keepComments) {
out = out.replace(/<!--.*?-->/gs, '');

Check failure

Code scanning / CodeQL

Incomplete multi-character sanitization

This string may still contain [<!--](1), which may cause a HTML element injection vulnerability.
@maxmilton maxmilton merged commit e48c459 into master Aug 7, 2022
@maxmilton maxmilton deleted the feat/export-stripwhitespace branch August 7, 2022 02:49
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.

None yet

1 participant