mirror of
https://github.com/cwinfo/matterbridge.git
synced 2025-07-04 03:07:44 +00:00
Update dependencies (#1951)
This commit is contained in:
8
vendor/golang.org/x/net/html/token.go
generated
vendored
8
vendor/golang.org/x/net/html/token.go
generated
vendored
@ -605,7 +605,10 @@ func (z *Tokenizer) readComment() {
|
||||
z.data.end = z.data.start
|
||||
}
|
||||
}()
|
||||
for dashCount := 2; ; {
|
||||
|
||||
var dashCount int
|
||||
beginning := true
|
||||
for {
|
||||
c := z.readByte()
|
||||
if z.err != nil {
|
||||
// Ignore up to two dashes at EOF.
|
||||
@ -620,7 +623,7 @@ func (z *Tokenizer) readComment() {
|
||||
dashCount++
|
||||
continue
|
||||
case '>':
|
||||
if dashCount >= 2 {
|
||||
if dashCount >= 2 || beginning {
|
||||
z.data.end = z.raw.end - len("-->")
|
||||
return
|
||||
}
|
||||
@ -638,6 +641,7 @@ func (z *Tokenizer) readComment() {
|
||||
}
|
||||
}
|
||||
dashCount = 0
|
||||
beginning = false
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user