The C# compiler bizarrely generates docfiles with uppercase extensions - recognize those too

This commit is contained in:
Paul Betts
2011-08-10 22:37:48 -07:00
parent 4f74446eaf
commit 6f51c8fc63

View File

@@ -266,7 +266,7 @@ module Linguist
#
# Returns true or false
def generated_net_docfile?
return false unless extname == ".xml"
return false unless extname.downcase == ".xml"
return false unless lines.count > 3
# .NET Docfiles always open with <doc> and their first tag is an