mirror of
https://github.com/go-gitea/gitea
synced 2025-07-08 03:27:19 +00:00
fix ext
This commit is contained in:
@ -36,7 +36,7 @@ func isLink(link []byte) bool {
|
||||
func IsMarkdownFile(name string) bool {
|
||||
name = strings.ToLower(name)
|
||||
switch filepath.Ext(name) {
|
||||
case "md", "markdown", "mdown":
|
||||
case ".md", ".markdown", ".mdown":
|
||||
return true
|
||||
}
|
||||
return false
|
||||
|
Reference in New Issue
Block a user