documentation? should use path too

This commit is contained in:
Arfon Smith
2015-02-24 15:20:58 -06:00
parent 8561f2a6b0
commit 94be1ab277

View File

@@ -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