mirror of
https://github.com/discourse/discourse.git
synced 2025-05-21 18:12:32 +08:00
Rename FileHelper.images
to FileHelper.supported_images
.
This commit is contained in:
@ -100,14 +100,12 @@ class FileHelper
|
||||
).optimize_image!(filename)
|
||||
end
|
||||
|
||||
private
|
||||
|
||||
def self.images
|
||||
@@images ||= Set.new %w{jpg jpeg png gif tif tiff bmp svg webp ico}
|
||||
def self.supported_images
|
||||
@@supported_images ||= Set.new %w{jpg jpeg png gif tif tiff bmp svg webp ico}
|
||||
end
|
||||
|
||||
def self.images_regexp
|
||||
@@images_regexp ||= /\.(#{images.to_a.join("|")})$/i
|
||||
@@images_regexp ||= /\.(#{supported_images.to_a.join("|")})$/i
|
||||
end
|
||||
|
||||
end
|
||||
|
Reference in New Issue
Block a user