Merge pull request #1940 from github/fix-multiple-extensions

Fix for extensions with multiple segments
This commit is contained in:
Brandon Keepers
2015-01-02 10:59:30 -05:00
2 changed files with 2 additions and 2 deletions

View File

@@ -548,7 +548,7 @@ module Linguist
if extnames = extensions[name]
extnames.each do |extname|
if !options['extensions'].include?(extname)
if !options['extensions'].index { |x| x.end_with? extname }
warn "#{name} has a sample with extension (#{extname}) that isn't explicitly defined in languages.yml" unless extname == '.script!'
options['extensions'] << extname
end