Skip to content

Commit

Permalink
Add support for image/jpeg mimetype
Browse files Browse the repository at this point in the history
  • Loading branch information
abejfehr authored Jan 27, 2023
1 parent aa5d667 commit db58dce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/removeRasterImages.js
Original file line number Diff line number Diff line change
Expand Up @@ -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\/)(jpg|jpeg|png|gif)/.test(node.attributes['xlink:href'])
) {
detachNodeFromParent(node, parentNode);
}
Expand Down

0 comments on commit db58dce

Please sign in to comment.