Improve markup detection, fixes #4695
This commit is contained in:
parent
8886b900ca
commit
9efdebaf12
1 changed files with 3 additions and 3 deletions
|
@ -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…
Reference in a new issue