diff --git a/hugolib/embedded_shortcodes_test.go b/hugolib/embedded_shortcodes_test.go
index c70380a4b..8056b9842 100644
--- a/hugolib/embedded_shortcodes_test.go
+++ b/hugolib/embedded_shortcodes_test.go
@@ -250,11 +250,11 @@ func TestShortcodeGist(t *testing.T) {
}{
{
`{{< gist spf13 7896402 >}}`,
- "(?s)^",
+ "(?s)^",
},
{
`{{< gist spf13 7896402 "img.html" >}}`,
- "(?s)^",
+ "(?s)^",
},
} {
var (