Skip to content

Commit

Permalink
Avoid renaming extname in case of jpg or jpe
Browse files Browse the repository at this point in the history
  • Loading branch information
SDaron committed Mar 21, 2019
1 parent 6100fdb commit c41a03f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/format.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,11 @@ module.exports = function(filePath) {
var extname = path.extname(filePath);
switch (extname) {
case '.jpeg':
return 'jpeg';
case '.jpg':
return 'jpg';
case '.jpe':
return 'jpeg';
return 'jpe';
case '.png':
return 'png';
case '.webp':
Expand Down

0 comments on commit c41a03f

Please sign in to comment.