Skip to content

Fix: Ignore comments in CSS files. #18

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

kjpowerworld
Copy link

@kjpowerworld kjpowerworld commented Apr 4, 2017

In the below snippet:

/*
 * Some comment...
 */
body InlineCssComponentName {
  font-size: 11px;
}

the inline CSS component won't replace the component name InlineCssComponentName with the generated component ID because the rule follows a CSS comment. The updated regex in this PR will ignore the comment.

@kjpowerworld kjpowerworld changed the title Ignore comments in CSS files. Fix: Ignore comments in CSS files. Apr 4, 2017
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.

1 participant