From 120743d3bfe2cbcb2f0340cc24c0af693cbe856b Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 26 Jun 2023 09:34:00 +0000 Subject: [chore]: Bump github.com/tdewolff/minify/v2 from 2.12.6 to 2.12.7 (#1927) --- vendor/github.com/tdewolff/minify/v2/common.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'vendor/github.com/tdewolff/minify/v2') diff --git a/vendor/github.com/tdewolff/minify/v2/common.go b/vendor/github.com/tdewolff/minify/v2/common.go index df0580047..3773a9b47 100644 --- a/vendor/github.com/tdewolff/minify/v2/common.go +++ b/vendor/github.com/tdewolff/minify/v2/common.go @@ -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) } -- cgit v1.3