[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
parent 33ccb716fc
commit 120743d3bf
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)
}