lib/docface/file_troll.rb in docface-0.0.3 vs lib/docface/file_troll.rb in docface-0.0.4
- old
+ new
@@ -3,10 +3,10 @@
def troll(dir)
if File.directory?(dir)
index = Array.new
path = dir.gsub(/\\(?=\S)/, '/')
- Dir.glob(File.join(path, '**/*.md')).each do |file|
+ Dir.glob(File.join(path, '**/*.{md,MD,markdown,mdown}')).each do |file|
index << file
end
index
else
puts "The directory #{dir} does not exist."