Skip to content

Commit abcd39f

Browse files
Bwkolunny
authored andcommitted
In the wiki title replace tab with a space (#371)
1 parent cbcb436 commit abcd39f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

models/wiki.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ func ToWikiPageURL(name string) string {
3333
// that are not belong to wiki repository.
3434
func ToWikiPageName(urlString string) string {
3535
name, _ := url.QueryUnescape(strings.Replace(urlString, "-", " ", -1))
36+
name = strings.Replace(name, "\t", " ", -1)
3637
return strings.Replace(strings.TrimLeft(name, "./"), "/", " ", -1)
3738
}
3839

0 commit comments

Comments
 (0)