提交 38ef603b 编写于 作者: D Dmitriy Zaporozhets

Merge pull request #4698 from Razer6/improve_markup_detection

Improve markup detection, fixes #4695
......@@ -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
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册