Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/dev' into dev
Browse files Browse the repository at this point in the history
  • Loading branch information
Vanessa219 committed Jul 6, 2024
2 parents 8f03464 + 7aa0776 commit 415ee59
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions kernel/treenode/tree.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,9 @@ func NodeHash(node *ast.Node, tree *parse.Tree, luteEngine *lute.Lute) string {
}
hpath := tree.HPath
data := tree.Box + tree.Path + hpath + string(ial) + md
if nil != node.Parent {
data += node.Parent.ID
}
return fmt.Sprintf("%x", sha256.Sum256(gulu.Str.ToBytes(data)))[:7]
}

Expand Down

0 comments on commit 415ee59

Please sign in to comment.