mirror of
https://github.com/gohugoio/hugo.git
synced 2024-11-07 20:30:36 -05:00
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.
This commit is contained in:
parent
3521e8b1e5
commit
5906c8652d
1 changed files with 1 additions and 1 deletions
|
@ -86,7 +86,7 @@ func TestReplaceExtension(t *testing.T) {
|
||||||
{"banana/pie/index.html", "xml", "index.xml"},
|
{"banana/pie/index.html", "xml", "index.xml"},
|
||||||
{"../pies/fish/index.html", "xml", "index.xml"},
|
{"../pies/fish/index.html", "xml", "index.xml"},
|
||||||
// but these all fail
|
// 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"},
|
{"/filename-without-an-ext", "ext", "filename-without-an-ext.ext"},
|
||||||
{"/directory/mydir/", "ext", ".ext"},
|
{"/directory/mydir/", "ext", ".ext"},
|
||||||
{"mydir/", "ext", ".ext"},
|
{"mydir/", "ext", ".ext"},
|
||||||
|
|
Loading…
Reference in a new issue