react-inline-css icon indicating copy to clipboard operation
react-inline-css copied to clipboard

Fix: Ignore comments in CSS files.

Open kjpowerworld opened this issue 8 years ago • 0 comments

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 avatar Apr 04 '17 18:04 kjpowerworld