From f210188da3ce901d7bdef095c2021f8365bf11e4 Mon Sep 17 00:00:00 2001 From: Bjørn Erik Pedersen Date: Thu, 8 Jun 2023 16:29:04 +0200 Subject: Upgrade to v2 of the Dart Sass Embedded Protocol Fixes #11059 --- hugolib/securitypolicies_test.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'hugolib') diff --git a/hugolib/securitypolicies_test.go b/hugolib/securitypolicies_test.go index 5b9267b59..60ef9a7e2 100644 --- a/hugolib/securitypolicies_test.go +++ b/hugolib/securitypolicies_test.go @@ -42,7 +42,6 @@ func TestSecurityPolicies(t *testing.T) { } else { b.Build(BuildCfg{}) } - } httpTestVariant := func(c *qt.C, templ, expectErr string, withBuilder func(b *sitesBuilder)) { @@ -145,7 +144,7 @@ allow="none" `) b.WithTemplatesAdded("index.html", `{{ $scss := "body { color: #333; }" | resources.FromString "foo.scss" | resources.ToCSS (dict "transpiler" "dartsass") }}`) } - testVariant(c, cb, `(?s).*"dart-sass-embedded" is not whitelisted in policy "security\.exec\.allow".*`) + testVariant(c, cb, `(?s).*sass(-embedded)?" is not whitelisted in policy "security\.exec\.allow".*`) }) c.Run("resources.GetRemote, OK", func(c *qt.C) { -- cgit v1.2.3