mirror of
https://github.com/KevinMidboe/linguist.git
synced 2025-12-29 21:31:01 +00:00
Merge pull request #295 from yandy/patch-1
downcase extname when we determin whether it's a image
This commit is contained in:
@@ -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?
|
||||||
|
|||||||
Reference in New Issue
Block a user