Skip to content

Commit

Permalink
forbid comment opening in cosmetic :style rules
Browse files Browse the repository at this point in the history
  • Loading branch information
antonok-edm committed Dec 6, 2021
1 parent 99cc869 commit 04c435a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/filters/cosmetic.rs
Original file line number Diff line number Diff line change
Expand Up @@ -444,6 +444,9 @@ mod css_validation {
if style.contains("url(") {
return false;
}
if style.contains("/*") {
return false;
}
true
}

Expand Down

0 comments on commit 04c435a

Please sign in to comment.