mirror of
https://github.com/svg/svgo.git
synced 2025-07-29 20:21:14 +03:00
plugins/removeRasterImages: add gif format
This commit is contained in:
@ -15,7 +15,7 @@ exports.removeRasterImages = function(item) {
|
||||
if (
|
||||
item.isElem('image') &&
|
||||
item.hasAttr('xlink:href') &&
|
||||
/(\.|image\/)(jpg|png)/.test(item.attr('xlink:href').value)
|
||||
/(\.|image\/)(jpg|png|gif)/.test(item.attr('xlink:href').value)
|
||||
) {
|
||||
return false;
|
||||
}
|
||||
|
Reference in New Issue
Block a user