Go back to lowercase slugs. Also, use MakePathToLower in TestMakeToLower.

go fmt
This commit is contained in:
Jakub Turski 2014-09-03 20:05:44 +01:00 committed by spf13
parent 5dd3eaabee
commit 1684579127
3 changed files with 10 additions and 7 deletions

View file

@ -35,7 +35,7 @@ func SanitizeUrl(in string) string {
// uri: Vim (text editor)
// urlize: vim-text-editor
func Urlize(uri string) string {
sanitized := MakePath(uri)
sanitized := MakePathToLower(uri)
// escape unicode letters
parsedUri, err := url.Parse(sanitized)