lib/esvg/symbol.rb in esvg-4.4.1 vs lib/esvg/symbol.rb in esvg-4.4.2

- old
+ new

@@ -227,10 +227,10 @@ .gsub(/style="([^"]*?)fill:(.+?);/m, 'fill="\2" style="\1') # Make fill a property instead of a style .gsub(/style="([^"]*?)fill-opacity:(.+?);/m, 'fill-opacity="\2" style="\1') # Move fill-opacity a property instead of a style .gsub(/\n/m, ' ') # Remove endlines .gsub(/\s{2,}/, ' ') # Remove whitespace .gsub(/>\s+</, '><') # Remove whitespace between tags - .gsub(/\s?fill="(#0{3,6}|black|rgba?\(0,0,0\))"/,'') # Strip black fill + .gsub(/\s?fill="(#0{3,6}|black|none|rgba?\(0,0,0\))"/,'') # Strip black fill end def post_optimize @optimized = set_attributes .gsub(/<\/svg/,'</symbol') # Replace svgs with symbols