diff options
author | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2015-10-15 11:15:26 +0300 |
---|---|---|
committer | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2015-10-15 11:15:26 +0300 |
commit | 6a3aced15a402183b7c92817a259c44d890cf7be (patch) | |
tree | 9346ae1df456b4eecec47c31aac0794dc42c75d1 /helpers | |
parent | 5619fe52d3b87f6f5f3a9e1c85107ea91b7a80f3 (diff) |
Rename prettiyPath to prettifyPath
Diffstat (limited to 'helpers')
-rw-r--r-- | helpers/path.go | 4 | ||||
-rw-r--r-- | helpers/url.go | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/helpers/path.go b/helpers/path.go index a6717cb37..9ead807c7 100644 --- a/helpers/path.go +++ b/helpers/path.go @@ -430,10 +430,10 @@ func PathPrep(ugly bool, in string) string { // /section/name/ becomes /section/name/index.html // /section/name/index.html becomes /section/name/index.html func PrettifyPath(in string) string { - return prettiyPath(in, fpb) + return prettifyPath(in, fpb) } -func prettiyPath(in string, b filepathPathBridge) string { +func prettifyPath(in string, b filepathPathBridge) string { if filepath.Ext(in) == "" { // /section/name/ -> /section/name/index.html if len(in) < 2 { diff --git a/helpers/url.go b/helpers/url.go index c42bc6450..d8530e3e7 100644 --- a/helpers/url.go +++ b/helpers/url.go @@ -244,7 +244,7 @@ func PrettifyURL(in string) string { // /section/name/ becomes /section/name/index.html // /section/name/index.html becomes /section/name/index.html func PrettifyURLPath(in string) string { - return prettiyPath(in, pb) + return prettifyPath(in, pb) } // Uglify does the opposite of PrettifyURLPath(). |