Try strategies until one language is returned

This commit is contained in:
Brandon Keepers
2014-11-27 11:12:47 -05:00
parent a4081498f8
commit c1a9737313
3 changed files with 13 additions and 15 deletions

View File

@@ -4,7 +4,7 @@ module Linguist
ACTIVE = true
def self.call(blob, languages)
find_by_heuristics(blob.data, langauges.map(&:name))
find_by_heuristics(blob.data, languages.map(&:name))
end
# Public: Given an array of String language names,