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
This is stripped by the comment regex and turns into a long string with all the values.
If the regex (?:/\*(.|[\r\n])*?\*/)|(?:(?<!url\s*\([^)]*)//.*) is changed to (?:/\*(.|[\r\n])*?\*/)|(?:(?<!url\s*\([^)]*)(?<!\:)//.*) in CssParser.cs, // sequences that are immediatly preceded by : will not be matched, and everything will work
The text was updated successfully, but these errors were encountered:
This will fix this case. However you can do a protocol agnostic url which this will not catch. ex.
-premailer-src: "//example.com/logo.png";
I think the regex should probably be replaced by a parser for better context. However we might be able to get away with a pretty clever regex expression.
Hi,
There's a bug in the comment regex in the CSS parser, but it's easily fixed.
Imagine the following CSS:
This is stripped by the comment regex and turns into a long string with all the values.
If the regex
(?:/\*(.|[\r\n])*?\*/)|(?:(?<!url\s*\([^)]*)//.*)
is changed to(?:/\*(.|[\r\n])*?\*/)|(?:(?<!url\s*\([^)]*)(?<!\:)//.*)
inCssParser.cs
,//
sequences that are immediatly preceded by:
will not be matched, and everything will workThe text was updated successfully, but these errors were encountered: