Update go tool dependencies (#32916) (#33355)

Clean cherry-pick of https://github.com/go-gitea/gitea/pull/32916.
Update all go tool dependencies to latest version.
This commit is contained in:
silverwind 2025-01-22 17:37:47 +01:00 committed by GitHub
parent e08eed9040
commit 987d014468
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
8 changed files with 11 additions and 14 deletions

View file

@ -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="([^"]+)"([^>]*>)`)
})