summaryrefslogtreecommitdiffstats
path: root/hugolib/shortcode_test.go
diff options
context:
space:
mode:
authorBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2018-10-18 09:47:39 +0200
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2018-10-22 19:57:44 +0200
commit1b7ecfc2e176315b69914756c70b46306561e4d1 (patch)
treec1b9c74418e700123dff9e382e13fae99f95f43b /hugolib/shortcode_test.go
parent27f5a906a2a34e3b8348c8baeea48355352b5bbb (diff)
hugolib: Use []byte in shortcode parsing
See #5324
Diffstat (limited to 'hugolib/shortcode_test.go')
-rw-r--r--hugolib/shortcode_test.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/hugolib/shortcode_test.go b/hugolib/shortcode_test.go
index 3385d31f0..f8837810c 100644
--- a/hugolib/shortcode_test.go
+++ b/hugolib/shortcode_test.go
@@ -424,7 +424,7 @@ func TestExtractShortcodes(t *testing.T) {
return fmt.Sprintf("HAHA%s-%dHBHB", shortcodePlaceholderPrefix, counter)
}
- content, err := s.extractShortcodes(this.input, p.withoutContent())
+ content, err := s.extractShortcodes([]byte(this.input), p.withoutContent())
if b, ok := this.expect.(bool); ok && !b {
if err == nil {