File tree 1 file changed +1
-6
lines changed 1 file changed +1
-6
lines changed Original file line number Diff line number Diff line change @@ -43,11 +43,6 @@ func NormalizeWikiName(name string) string {
43
43
return strings .ReplaceAll (name , "-" , " " )
44
44
}
45
45
46
- // NameToUnescapedFilename converts a wiki name to its corresponding filename without url query escape.
47
- func NameToUnescapedFilename (name string ) string {
48
- return name + ".md"
49
- }
50
-
51
46
// NameToFilename converts a wiki name to its corresponding filename.
52
47
func NameToFilename (name string ) string {
53
48
name = strings .ReplaceAll (name , " " , "-" )
@@ -89,7 +84,7 @@ func InitWiki(repo *models.Repository) error {
89
84
// prepareWikiFileName try to find a suitable file path with file name by the given raw wiki name.
90
85
// return: existence, prepared file path with name, error
91
86
func prepareWikiFileName (gitRepo * git.Repository , wikiName string ) (bool , string , error ) {
92
- unescaped := NameToUnescapedFilename ( wikiName )
87
+ unescaped := wikiName + ".md"
93
88
escaped := NameToFilename (wikiName )
94
89
95
90
// Look for both files
You can’t perform that action at this time.
0 commit comments