[chore]: Bump github.com/tdewolff/minify/v2 from 2.12.6 to 2.12.7 (#1927)

This commit is contained in:
dependabot[bot] 2023-06-26 09:34:00 +00:00 committed by GitHub
commit 120743d3bf
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 7 additions and 5 deletions

View file

@ -34,7 +34,9 @@ func Mediatype(b []byte) []byte {
} else if c == '"' {
inString = !inString
if inString {
parse.ToLower(b[lastString:i])
if i-lastString < 1024 { // ToLower may otherwise slow down minification greatly
parse.ToLower(b[lastString:i])
}
} else {
lastString = j + (i + 1 - start)
}

2
vendor/modules.txt vendored
View file

@ -679,7 +679,7 @@ github.com/superseriousbusiness/oauth2/v4/generates
github.com/superseriousbusiness/oauth2/v4/manage
github.com/superseriousbusiness/oauth2/v4/models
github.com/superseriousbusiness/oauth2/v4/server
# github.com/tdewolff/minify/v2 v2.12.6
# github.com/tdewolff/minify/v2 v2.12.7
## explicit; go 1.13
github.com/tdewolff/minify/v2
github.com/tdewolff/minify/v2/html