From f2f8a42f00b9d6860ccee354ad4ef243be14fd7d Mon Sep 17 00:00:00 2001 From: Paulo Date: Sat, 9 May 2015 11:15:16 +0200 Subject: [PATCH] Fix syntax bug on retina file matching --- .../lib/middleman-more/extensions/automatic_image_sizes.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/middleman-core/lib/middleman-more/extensions/automatic_image_sizes.rb b/middleman-core/lib/middleman-more/extensions/automatic_image_sizes.rb index f95a0d70..45d89c8a 100644 --- a/middleman-core/lib/middleman-more/extensions/automatic_image_sizes.rb +++ b/middleman-core/lib/middleman-more/extensions/automatic_image_sizes.rb @@ -24,7 +24,7 @@ class Middleman::Extensions::AutomaticImageSizes < ::Middleman::Extension begin width, height = ::FastImage.size(full_path, raise_on_failure: true) # Check for @2x and @3x image - retina = full_path.match/(@(\d)x\.[a-zA-Z]{3,4}$/) + retina = full_path.match(/@(\d)x\.[a-zA-Z]{3,4}$/) if retina factor = retina[1].to_i width = width / factor