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

Add escaping of keyframe names #1100

Merged
merged 3 commits into from
May 13, 2019
Merged

Add escaping of keyframe names #1100

merged 3 commits into from
May 13, 2019

Conversation

HenriBeck
Copy link
Member

Corresponding issue (if exists): #1098

@HenriBeck HenriBeck requested a review from kof May 9, 2019 16:35
Copy link
Member

@kof kof left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm, let's add a test

@HenriBeck
Copy link
Member Author

@kof, please approve. Added a regression test for it.

it('should correctly escape the name', () => {
const localJss = create({
createGenerateId() {
return (rule, sheet) => `${sheet.options.classNamePrefix}-${rule.key}-id`
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can you move it to the createGenerateId we use everywhere in tests? Seems like this could be just used there without any issues, I mean without changing the class name in all assertions.

@kof
Copy link
Member

kof commented May 13, 2019

@HenriBeck please add a changelog

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.

2 participants