summaryrefslogtreecommitdiff
path: root/vendor/github.com
diff options
context:
space:
mode:
authorLibravatar dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>2025-04-22 12:32:55 +0200
committerLibravatar GitHub <noreply@github.com>2025-04-22 12:32:55 +0200
commitc670493ad9435f0ca7c62a56b950d59d6a9841aa (patch)
treeebe194dc79a5e2246802a08d0d02f2a015fe4ea5 /vendor/github.com
parent[chore]: Bump github.com/yuin/goldmark from 1.7.8 to 1.7.10 (#4037) (diff)
downloadgotosocial-c670493ad9435f0ca7c62a56b950d59d6a9841aa.tar.xz
[chore]: Bump github.com/tdewolff/minify/v2 from 2.23.0 to 2.23.1 (#4036)
Bumps [github.com/tdewolff/minify/v2](https://github.com/tdewolff/minify) from 2.23.0 to 2.23.1. - [Release notes](https://github.com/tdewolff/minify/releases) - [Commits](https://github.com/tdewolff/minify/compare/v2.23.0...v2.23.1) --- updated-dependencies: - dependency-name: github.com/tdewolff/minify/v2 dependency-version: 2.23.1 dependency-type: direct:production update-type: version-update:semver-patch ... 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')
-rw-r--r--vendor/github.com/tdewolff/parse/v2/html/lex.go20
1 files changed, 10 insertions, 10 deletions
diff --git a/vendor/github.com/tdewolff/parse/v2/html/lex.go b/vendor/github.com/tdewolff/parse/v2/html/lex.go
index 8e2719504..4eb50f49d 100644
--- a/vendor/github.com/tdewolff/parse/v2/html/lex.go
+++ b/vendor/github.com/tdewolff/parse/v2/html/lex.go
@@ -162,7 +162,16 @@ func (l *Lexer) Next() (TokenType, []byte) {
for {
c = l.r.Peek(0)
- if c == '<' {
+ if 0 < len(l.tmplBegin) && l.at(l.tmplBegin...) {
+ if 0 < l.r.Pos() {
+ l.text = l.r.Shift()
+ return TextToken, l.text
+ }
+ l.r.Move(len(l.tmplBegin))
+ l.moveTemplate()
+ l.hasTmpl = true
+ return TemplateToken, l.r.Shift()
+ } else if c == '<' {
c = l.r.Peek(1)
isEndTag := c == '/' && l.r.Peek(2) != '>' && (l.r.Peek(2) != 0 || l.r.PeekErr(2) == nil)
if !isEndTag && (c < 'a' || 'z' < c) && (c < 'A' || 'Z' < c) && c != '!' && c != '?' {
@@ -190,15 +199,6 @@ func (l *Lexer) Next() (TokenType, []byte) {
l.r.Move(1)
return CommentToken, l.shiftBogusComment()
}
- } else if 0 < len(l.tmplBegin) && l.at(l.tmplBegin...) {
- if 0 < l.r.Pos() {
- l.text = l.r.Shift()
- return TextToken, l.text
- }
- l.r.Move(len(l.tmplBegin))
- l.moveTemplate()
- l.hasTmpl = true
- return TemplateToken, l.r.Shift()
} else if c == 0 && l.r.Err() != nil {
if 0 < l.r.Pos() {
l.text = l.r.Shift()