diff options
author | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2018-03-14 09:33:32 +0100 |
---|---|---|
committer | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2018-03-14 17:04:14 +0100 |
commit | 3fbc75534d1acda2be1c597aa77c919d3a02659d (patch) | |
tree | af0388879ab8053b21fe41fdf8e8a869033981b3 /resource/resource_test.go | |
parent | e427ba4268603de7b096f48e7dbda40e03750911 (diff) |
resource: Fix path duplication/flattening in processed images
Fixes #4502
Closes #4501
Diffstat (limited to 'resource/resource_test.go')
-rw-r--r-- | resource/resource_test.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/resource/resource_test.go b/resource/resource_test.go index f4c652d43..396b40446 100644 --- a/resource/resource_test.go +++ b/resource/resource_test.go @@ -93,7 +93,7 @@ func TestNewResourceFromFilenameSubPathInBaseURL(t *testing.T) { assert.Equal("/docs/a/b/logo.png", r.RelPermalink()) assert.Equal("https://example.com/docs/a/b/logo.png", r.Permalink()) img := r.(*Image) - assert.Equal("/a/b/logo.png", img.target()) + assert.Equal(filepath.FromSlash("/a/b/logo.png"), img.target()) } |