summaryrefslogtreecommitdiff
path: root/node_modules/svgo/plugins/removeRasterImages.js
diff options
context:
space:
mode:
Diffstat (limited to 'node_modules/svgo/plugins/removeRasterImages.js')
-rw-r--r--node_modules/svgo/plugins/removeRasterImages.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/node_modules/svgo/plugins/removeRasterImages.js b/node_modules/svgo/plugins/removeRasterImages.js
index 8a363531..1a4a4a12 100644
--- a/node_modules/svgo/plugins/removeRasterImages.js
+++ b/node_modules/svgo/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);
}