Skip to content

Commit

Permalink
Split match by underscore to get whole resolution, instead transform …
Browse files Browse the repository at this point in the history
…to integer
  • Loading branch information
marciovicente committed Oct 23, 2015
1 parent e6ad00b commit 51eb427
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/wraith/gallery.rb
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ def match(categories, dirname)
end

def matcher(match, filename, dirname, category)
@size = match[1].to_i
@size = match[1].split('_')[0]
@group = match[2]
@filepath = category + "/" + filename
@thumbnail = "thumbnails/#{category}/#{filename}"
Expand Down

0 comments on commit 51eb427

Please sign in to comment.