Skip to content
Snippets Groups Projects
Commit 9efdebaf authored by Robert Schilling's avatar Robert Schilling
Browse files

Improve markup detection, fixes #4695

parent 8886b900
No related branches found
No related tags found
1 merge request!4698Improve markup detection, fixes #4695
Loading
Loading
@@ -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
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment