From 94be1ab2774ca68c841c4747495d8df7c4bfe8cf Mon Sep 17 00:00:00 2001 From: Arfon Smith Date: Tue, 24 Feb 2015 15:20:58 -0600 Subject: [PATCH] documentation? should use path 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 a959d398..01a567e0 100644 --- a/lib/linguist/blob_helper.rb +++ b/lib/linguist/blob_helper.rb @@ -248,7 +248,7 @@ module Linguist # # Return true or false def documentation? - name =~ DocumentationRegexp ? true : false + path =~ DocumentationRegexp ? true : false end # Public: Get each line of data