FEATURE: add webp and svg to known image formats

This commit is contained in:
Jeff Atwood 2014-10-13 12:43:36 -07:00
parent 199896a607
commit d926cc13ac

View File

@ -28,7 +28,7 @@ class FileHelper
private
def self.images
@@images ||= Set.new ["jpg", "jpeg", "png", "gif", "tif", "tiff", "bmp"]
@@images ||= Set.new ["jpg", "jpeg", "png", "gif", "tif", "tiff", "bmp", "svg", "webp"]
end
def self.images_regexp