diff options
| author | 2023-06-26 09:34:00 +0000 | |
|---|---|---|
| committer | 2023-06-26 09:34:00 +0000 | |
| commit | 120743d3bfe2cbcb2f0340cc24c0af693cbe856b (patch) | |
| tree | 7c4a09fcca4c20f138b00a9d5d75363056543845 /vendor | |
| parent | [chore]: Bump golang.org/x/image from 0.7.0 to 0.8.0 (#1926) (diff) | |
| download | gotosocial-120743d3bfe2cbcb2f0340cc24c0af693cbe856b.tar.xz | |
[chore]: Bump github.com/tdewolff/minify/v2 from 2.12.6 to 2.12.7 (#1927)
Diffstat (limited to 'vendor')
| -rw-r--r-- | vendor/github.com/tdewolff/minify/v2/common.go | 4 | ||||
| -rw-r--r-- | vendor/modules.txt | 2 |
2 files changed, 4 insertions, 2 deletions
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) } diff --git a/vendor/modules.txt b/vendor/modules.txt index da363843b..bf1d1fa3c 100644 --- a/vendor/modules.txt +++ b/vendor/modules.txt @@ -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 |
