From 6f51c8fc632444d299dadf134d9a66774e1bea56 Mon Sep 17 00:00:00 2001 From: Paul Betts Date: Wed, 10 Aug 2011 22:37:48 -0700 Subject: [PATCH] The C# compiler bizarrely generates docfiles with uppercase extensions - recognize those too --- lib/linguist/blob_helper.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/linguist/blob_helper.rb b/lib/linguist/blob_helper.rb index 47fcc7ca..089a9381 100644 --- a/lib/linguist/blob_helper.rb +++ b/lib/linguist/blob_helper.rb @@ -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 and their first tag is an