mirror of
https://github.com/KevinMidboe/linguist.git
synced 2025-10-29 17:50:22 +00:00
Return 'text' for missing lexer
This commit is contained in:
@@ -36,7 +36,7 @@ module Linguist
|
||||
end
|
||||
|
||||
def self.find_by_lexer(lexer)
|
||||
@lexer_index[lexer]
|
||||
@lexer_index[lexer] || self['Text']
|
||||
end
|
||||
|
||||
def self.popular
|
||||
|
||||
Reference in New Issue
Block a user