1
0
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:
deepsweet
2013-02-13 17:24:25 +02:00
parent 7ddc8ebbc0
commit f944a2af57
3 changed files with 3 additions and 1 deletions

View File

@ -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;
}