diff --git a/lib/linguist/language.rb b/lib/linguist/language.rb index 81e70361..87f84f7b 100644 --- a/lib/linguist/language.rb +++ b/lib/linguist/language.rb @@ -104,7 +104,7 @@ module Linguist # # We'll perform a more comprehensive test later which actually involves # looking for binary characters in the blob - return nil if blob.likely_binary? + return nil if blob.likely_binary? || blob.binary? # A bit of an elegant hack. If the file is executable but extensionless, # append a "magic" extension so it can be classified with other