mirror of
				https://github.com/KevinMidboe/linguist.git
				synced 2025-10-29 17:50:22 +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
 | 
			
		||||
    def image?
 | 
			
		||||
      ['.png', '.jpg', '.jpeg', '.gif'].include?(extname)
 | 
			
		||||
      ['.png', '.jpg', '.jpeg', '.gif'].include?(extname.downcase)
 | 
			
		||||
    end
 | 
			
		||||
 | 
			
		||||
    # Public: Is the blob a supported 3D model format?
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user