Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/gohugoio/hugo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOwen Waller <o.waller@kulawe.com>2014-09-22 20:49:39 +0400
committerspf13 <steve.francia@gmail.com>2014-11-05 03:19:09 +0300
commit5906c8652dfb63e9e54b718ea5787c7231816c12 (patch)
tree78560d30d2687e1e41430058fa5b01831d7ad470 /helpers
parent3521e8b1e57feb7ff9625a7e8bc453e10ba11b9e (diff)
Fix: remove the unnecessary dot in an extension
Oops minor typo. The new extension passed to ReplaceExtension should not have a dot in it. The test data bas been updated to reflect this.
Diffstat (limited to 'helpers')
-rw-r--r--helpers/path_test.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/helpers/path_test.go b/helpers/path_test.go
index c8729780e..e6dc1e761 100644
--- a/helpers/path_test.go
+++ b/helpers/path_test.go
@@ -86,7 +86,7 @@ func TestReplaceExtension(t *testing.T) {
{"banana/pie/index.html", "xml", "index.xml"},
{"../pies/fish/index.html", "xml", "index.xml"},
// but these all fail
- {"filename-without-ext", ".ext", "filename-without-an-ext.ext"},
+ {"filename-without-an-ext", "ext", "filename-without-an-ext.ext"},
{"/filename-without-an-ext", "ext", "filename-without-an-ext.ext"},
{"/directory/mydir/", "ext", ".ext"},
{"mydir/", "ext", ".ext"},