Fix #1731 to allow samples with multiple file extension segments.

This commit is contained in:
Lars Brinkhoff
2014-12-05 11:51:33 +01:00
committed by Brandon Keepers
parent 80ed2d6d30
commit 6ae39e50ae
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