We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Tags that have the letter n in them (e.g. input, main) are not purged.
n
input
main
Code to reproduce:
const Purgecss = require('purgecss'); const purgecss = new Purgecss({ content: [{ raw: '<h1></h1>', }], css: [{ raw: 'h1 { margin: 0; } h2 { margin: 0; } input { margin: 0; }' }] }); console.log(purgecss.purge()[0].css);
Expected output:
h1 { margin: 0; }
Actual output:
h1 { margin: 0; } input { margin: 0; }
I think that the regular expression in line 328 in src/index.js might be the culprit, since it matches tags that have an n in them.
src/index.js
The text was updated successfully, but these errors were encountered:
fix for tags with the letter "n" in them are not purged FullHuman#195
97ccf81
No branches or pull requests
Tags that have the letter
n
in them (e.g.input
,main
) are not purged.Code to reproduce:
Expected output:
Actual output:
I think that the regular expression in line 328 in
src/index.js
might be the culprit, since it matches tags that have ann
in them.The text was updated successfully, but these errors were encountered: