hugolib: Use []byte in shortcode parsing

See #5324
This commit is contained in:
Bjørn Erik Pedersen
2018-10-18 09:47:39 +02:00
parent 27f5a906a2
commit 1b7ecfc2e1
6 changed files with 28 additions and 25 deletions

View File

@@ -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 {