mirror of
https://github.com/KevinMidboe/linguist.git
synced 2025-10-29 17:50:22 +00:00
viewable? should not load or binary check large blobs
This commit is contained in:
@@ -150,7 +150,7 @@ module Linguist
|
|||||||
#
|
#
|
||||||
# Return true or false
|
# Return true or false
|
||||||
def viewable?
|
def viewable?
|
||||||
text? && !large?
|
!large? && text?
|
||||||
end
|
end
|
||||||
|
|
||||||
vendored_paths = YAML.load_file(File.expand_path("../vendor.yml", __FILE__))
|
vendored_paths = YAML.load_file(File.expand_path("../vendor.yml", __FILE__))
|
||||||
|
|||||||
Reference in New Issue
Block a user