Skip to content

Commit

Permalink
Fallback to original image height in name replacement
Browse files Browse the repository at this point in the history
  • Loading branch information
cyrilwanner committed Jul 30, 2020
1 parent 2ba7043 commit 291c48f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/processLoaders.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ const replaceName = (
): string => {
return name
.replace(/\[width\]/g, `${imageOptions.width || originalImageInfo.width}`)
.replace(/\[height\]/g, `${imageOptions.height}`);
.replace(/\[height\]/g, `${imageOptions.height || originalImageInfo.height}`);
};

/**
Expand Down

0 comments on commit 291c48f

Please sign in to comment.