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

Safeguard against trailing slash in purge matches #2364

Merged
merged 1 commit into from
Sep 10, 2020

Conversation

adamwathan
Copy link
Member

Resolves #2360.

This PR adds another set of matches for purge to consider which are the original broad matches, minus any trailing slashes. This means in this string:

class=\"foo\"

...both foo\ and foo will be checked in the stylesheet.

@adamwathan adamwathan merged commit a4b30a0 into master Sep 10, 2020
@adamwathan adamwathan deleted the purge-trailing-slash branch September 10, 2020 18:44
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.

Update default extractor for purgeCSS to account for escaped class names
1 participant