Merge pull request #295 from yandy/patch-1

downcase extname when we determin whether it's a image
This commit is contained in:
Ted Nyman
2013-03-10 15:39:55 -07:00

View File

@@ -148,7 +148,7 @@ module Linguist
# #
# Return true or false # Return true or false
def image? def image?
['.png', '.jpg', '.jpeg', '.gif'].include?(extname) ['.png', '.jpg', '.jpeg', '.gif'].include?(extname.downcase)
end end
# Public: Is the blob a supported 3D model format? # Public: Is the blob a supported 3D model format?