Skip to content

Commit

Permalink
fix(parser): Remove erroneous comment and fix (#6645)
Browse files Browse the repository at this point in the history
Co-authored-by: Thomas Kellermeier <[email protected]>
  • Loading branch information
Chaoste and Thomas Kellermeier authored Oct 11, 2020
1 parent 2819324 commit 7de3b1f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/parser.js
Original file line number Diff line number Diff line change
Expand Up @@ -983,8 +983,7 @@

// very crude parsing of style contents
for (i = 0, len = styles.length; i < len; i++) {
// <style/> could produce `undefined`, covering this case with ''
var styleContents = styles[i].textContent || '';
var styleContents = styles[i].textContent;

// remove comments
styleContents = styleContents.replace(/\/\*[\s\S]*?\*\//g, '');
Expand Down

0 comments on commit 7de3b1f

Please sign in to comment.