diff options
author | Robert Schilling <rschilling@student.tugraz.at> | 2013-08-03 14:40:43 +0200 |
---|---|---|
committer | Robert Schilling <rschilling@student.tugraz.at> | 2013-08-03 14:40:43 +0200 |
commit | 9efdebaf128e88788948efce7e1008783c8fcb79 (patch) | |
tree | bd980a49e7126de4b9321f591ac3af7feb606091 /app/helpers/tree_helper.rb | |
parent | 8886b900cad751273044d40d9d0eefbe1ea81616 (diff) | |
download | gitlab-ce-9efdebaf128e88788948efce7e1008783c8fcb79.tar.gz |
Improve markup detection, fixes #4695
Diffstat (limited to 'app/helpers/tree_helper.rb')
-rw-r--r-- | app/helpers/tree_helper.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/app/helpers/tree_helper.rb b/app/helpers/tree_helper.rb index d41f8377559..a77db475234 100644 --- a/app/helpers/tree_helper.rb +++ b/app/helpers/tree_helper.rb @@ -39,12 +39,12 @@ module TreeHelper # # Returns boolean def markup?(filename) - filename.end_with?(*%w(.textile .rdoc .org .creole - .mediawiki .rst .asciidoc .pod)) + filename.downcase.end_with?(*%w(.textile .rdoc .org .creole + .mediawiki .rst .asciidoc .pod)) end def gitlab_markdown?(filename) - filename.end_with?(*%w(.mdown .md .markdown)) + filename.downcase.end_with?(*%w(.mdown .md .markdown)) end def plain_text_readme? filename |