diff --git a/app/helpers/tree_helper.rb b/app/helpers/tree_helper.rb index a8491dfe3ba3c32e3888f25bf35afe5a08889168..af633f6fd04b2a484260fdbc8c557bf159874245 100644 --- a/app/helpers/tree_helper.rb +++ b/app/helpers/tree_helper.rb @@ -48,7 +48,7 @@ module TreeHelper end def plain_text_readme? filename - filename == 'README' + filename =~ /^README(.txt)?$/i end # Simple shortcut to File.join