diff options
author | 2024-10-21 11:39:43 +0200 | |
---|---|---|
committer | 2024-10-21 11:39:43 +0200 | |
commit | f301ec65f14f26d32495f3876e2b108bcbcc317a (patch) | |
tree | 3b224cbeebdf64fe53875a0f101370fdb2932d44 /vendor/github.com/tdewolff/parse/v2/html/lex.go | |
parent | [chore]: Bump github.com/yuin/goldmark from 1.7.6 to 1.7.8 (#3470) (diff) | |
download | gotosocial-f301ec65f14f26d32495f3876e2b108bcbcc317a.tar.xz |
[chore]: Bump github.com/tdewolff/minify/v2 from 2.20.37 to 2.21.0 (#3468)
Bumps [github.com/tdewolff/minify/v2](https://github.com/tdewolff/minify) from 2.20.37 to 2.21.0.
- [Release notes](https://github.com/tdewolff/minify/releases)
- [Commits](https://github.com/tdewolff/minify/compare/v2.20.37...v2.21.0)
---
updated-dependencies:
- dependency-name: github.com/tdewolff/minify/v2
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Diffstat (limited to 'vendor/github.com/tdewolff/parse/v2/html/lex.go')
-rw-r--r-- | vendor/github.com/tdewolff/parse/v2/html/lex.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/vendor/github.com/tdewolff/parse/v2/html/lex.go b/vendor/github.com/tdewolff/parse/v2/html/lex.go index c000edccc..b24d4dcd2 100644 --- a/vendor/github.com/tdewolff/parse/v2/html/lex.go +++ b/vendor/github.com/tdewolff/parse/v2/html/lex.go @@ -362,7 +362,7 @@ func (l *Lexer) shiftBogusComment() []byte { func (l *Lexer) shiftStartTag() (TokenType, []byte) { for { - if c := l.r.Peek(0); c == ' ' || c == '>' || c == '/' && l.r.Peek(1) == '>' || c == '\t' || c == '\n' || c == '\r' || c == '\f' || c == 0 && l.r.Err() != nil { + if c := l.r.Peek(0); (c < 'a' || 'z' < c) && (c < 'A' || 'Z' < c) && (c < '0' || '9' < c) && c != '-' { break } l.r.Move(1) |