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
now adds prefixes to each class individually #950
Conversation
c0875b6
to
1811be5
Compare
I think id should be a different case. |
d0b749a
to
2b4d4ca
Compare
plugins/prefixIds.js
Outdated
node.name = addPrefix(node.name); | ||
return; | ||
} | ||
|
||
// .class | ||
if (node.type === 'ClassSelector' && node.name) { | ||
node.name = node.name.split(' ').map(addPrefix).join(' '); |
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.
Might be better to split on /\s+/
?
1295c8c
to
0654fb5
Compare
0654fb5
to
5d29b2e
Compare
ok i fixed the whole thing and added a complex test about it |
when will this be published? |
@GreLI, could you cut a release? It's been a couple of months since this was merged. |
SVGO v1.1.0 with the fix has been just released. |
No description provided.