Ask Charlock earlier

This commit is contained in:
Arfon Smith
2014-07-04 21:12:46 -05:00
parent 94b4ad1de6
commit 986611ac36

View File

@@ -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