Skip to content

Commit

Permalink
TAP5-2606 - Inline SVG image is broken in proudction mode, because wh…
Browse files Browse the repository at this point in the history
…itespaces are removed - apply open PR yui/yuicompressor#319
  • Loading branch information
balapal committed Jan 17, 2019
1 parent 0b3a8c5 commit 008ffcf
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,8 @@ public void compress(Writer out, int linebreakpos)
css = sb.toString();


css = this.preserveToken(css, "url", "(?i)url\\(\\s*([\"']?)data\\:", true, preservedTokens);
css = this.preserveToken(css, "url", "(?i)url\\(\\s*([\"']?)data\\:\\s*image/svg\\+xml", false, preservedTokens);
css = this.preserveToken(css, "url", "(?i)url\\(\\s*([\"']?)data\\:\\s*(?!(image/svg\\+xml))", true, preservedTokens);
css = this.preserveToken(css, "calc", "(?i)calc\\(\\s*([\"']?)", false, preservedTokens);
css = this.preserveToken(css, "progid:DXImageTransform.Microsoft.Matrix", "(?i)progid:DXImageTransform.Microsoft.Matrix\\s*([\"']?)", false, preservedTokens);

Expand Down

0 comments on commit 008ffcf

Please sign in to comment.