mirror of
https://github.com/go-gitea/gitea
synced 2024-11-18 15:49:33 +01:00
fix node stop
This commit is contained in:
parent
067853f5b2
commit
6c6fc38c2f
@ -592,7 +592,8 @@ func replaceContentList(node *html.Node, i, j int, newNodes []*html.Node) {
|
||||
|
||||
func mentionProcessor(ctx *RenderContext, node *html.Node) {
|
||||
start := 0
|
||||
for node != nil {
|
||||
nodeStop := node.NextSibling
|
||||
for node != nodeStop {
|
||||
found, loc := references.FindFirstMentionBytes(util.UnsafeStringToBytes(node.Data[start:]))
|
||||
if !found {
|
||||
node = node.NextSibling
|
||||
|
Loading…
Reference in New Issue
Block a user