aboutsummaryrefslogtreecommitdiffstats
path: root/modules/markup/internal/renderinternal.go
diff options
context:
space:
mode:
Diffstat (limited to 'modules/markup/internal/renderinternal.go')
-rw-r--r--modules/markup/internal/renderinternal.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/markup/internal/renderinternal.go b/modules/markup/internal/renderinternal.go
index 4775fecfc7..4d58f160a9 100644
--- a/modules/markup/internal/renderinternal.go
+++ b/modules/markup/internal/renderinternal.go
@@ -17,7 +17,7 @@ import (
"golang.org/x/net/html"
)
-var reAttrClass = sync.OnceValue[*regexp.Regexp](func() *regexp.Regexp {
+var reAttrClass = sync.OnceValue(func() *regexp.Regexp {
// TODO: it isn't a problem at the moment because our HTML contents are always well constructed
return regexp.MustCompile(`(<[^>]+)\s+class="([^"]+)"([^>]*>)`)
})