Skip to content

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

2 participants