You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It looks like comment stripping might be a little overly aggressive. I'd expect it to ignore /* and */ in strings and simply return the original string, but instead it does the following:
Example 1
Input
.test-1 {
content:"/* this is just a string */";
}
yeah looks like a bug ... might be hard to fix since a lot of things are done via regex
PR welcome if you have an idea how to fix ... but might need a full css syntax parser which would be a complete overhaul
maybe possible by finding some c-based library to wrap, but that might already exist as another gem
Activity
grosser commentedon Oct 18, 2025
yeah looks like a bug ... might be hard to fix since a lot of things are done via regex
PR welcome if you have an idea how to fix ... but might need a full css syntax parser which would be a complete overhaul
maybe possible by finding some c-based library to wrap, but that might already exist as another gem