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

now adds prefixes to each class individually #950

Merged
merged 1 commit into from Apr 24, 2018

Conversation

vzaidman
Copy link
Contributor

No description provided.

@GreLI
Copy link
Member

GreLI commented Apr 24, 2018

I think id should be a different case.

@vzaidman vzaidman force-pushed the 948-add-option-to-format-class-name branch 3 times, most recently from d0b749a to 2b4d4ca Compare April 24, 2018 11:56
node.name = addPrefix(node.name);
return;
}

// .class
if (node.type === 'ClassSelector' && node.name) {
node.name = node.name.split(' ').map(addPrefix).join(' ');
Copy link
Contributor

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+/?

@vzaidman vzaidman force-pushed the 948-add-option-to-format-class-name branch 5 times, most recently from 1295c8c to 0654fb5 Compare April 24, 2018 12:21
@vzaidman vzaidman force-pushed the 948-add-option-to-format-class-name branch from 0654fb5 to 5d29b2e Compare April 24, 2018 12:23
@vzaidman
Copy link
Contributor Author

ok i fixed the whole thing and added a complex test about it

@GreLI GreLI merged commit 9dd1802 into svg:master Apr 24, 2018
@vzaidman
Copy link
Contributor Author

when will this be published?

@vzaidman vzaidman deleted the 948-add-option-to-format-class-name branch April 24, 2018 12:46
@tremby
Copy link
Contributor

tremby commented Jun 26, 2018

@GreLI, could you cut a release? It's been a couple of months since this was merged.

@GreLI
Copy link
Member

GreLI commented Sep 16, 2018

SVGO v1.1.0 with the fix has been just released.

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

3 participants