Skip to content

Commit

Permalink
Fix for proper resizing if the filename or path contains letter x wit…
Browse files Browse the repository at this point in the history
…h digits surrounding it eg: 8x8
  • Loading branch information
Arpee Ong committed Jul 27, 2019
1 parent 7dbf592 commit 2f1bf56
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/image-handler/thumbor-mapping.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ class ThumborMapping {
const filetype = (this.path.split('.'))[(this.path.split('.')).length - 1];

//Process the Dimenions
const dimPath = this.path.match(/\d+x\d+/g);
const dimPath = this.path.match(/[^\/]\d+x\d+/g);
if (dimPath) {
const dims = dimPath[0].split('x');
// Set only if the dimensions provided are valid
Expand Down

0 comments on commit 2f1bf56

Please sign in to comment.