Skip to content

Commit

Permalink
Use regex for svgo’s currentColor replacement (#315)
Browse files Browse the repository at this point in the history
Only replace the color if it’s not “none” (default) or using pattern fills (using `url(…)`).
  • Loading branch information
swissspidy authored Feb 14, 2020
1 parent 0b8acb8 commit 0587f89
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .svgo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ plugins:
- removeViewBox: false
- removeDimensions: true
- convertColors:
currentColor: true
currentColor: /\b(?!url|none)/i

0 comments on commit 0587f89

Please sign in to comment.