mirror of
https://github.com/KevinMidboe/linguist.git
synced 2026-02-13 11:49:51 +00:00
Soften memory pressure
This commit is contained in:
@@ -56,7 +56,8 @@ module Linguist
|
||||
|
||||
# Internal: Check if this heuristic matches the candidate languages.
|
||||
def matches?(filename)
|
||||
@extensions.any? { |ext| filename.downcase.end_with?(ext) }
|
||||
filename = filename.downcase
|
||||
@extensions.any? { |ext| filename.end_with?(ext) }
|
||||
end
|
||||
|
||||
# Internal: Perform the heuristic
|
||||
|
||||
Reference in New Issue
Block a user