diff --git a/plugins/removeRasterImages.js b/plugins/removeRasterImages.js index 8a3635318..1a4a4a12e 100644 --- a/plugins/removeRasterImages.js +++ b/plugins/removeRasterImages.js @@ -21,7 +21,7 @@ exports.fn = () => { if ( node.name === 'image' && node.attributes['xlink:href'] != null && - /(\.|image\/)(jpg|png|gif)/.test(node.attributes['xlink:href']) + /(\.|image\/)(jpe?g|png|gif)/.test(node.attributes['xlink:href']) ) { detachNodeFromParent(node, parentNode); }