An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作
TypeScript agentic-aiai-agentknowledge-baselocal-firstmarkdownmcpmindmapnote-takingself-hostedsiyuanworkspace
:bug: Regular replacement text fails https://github.com/siyuan-note/siyuan/issues/11444
Danielad58e1c0c9c6
diff --git a/kernel/model/search.go b/kernel/model/search.goindex ff260314aa..7fc3010449 100644--- a/kernel/model/search.go+++ b/kernel/model/search.go@@ -803,7 +803,7 @@ func replaceTextNode(text *ast.Node, method int, keyword string, replacement str}} else if 3 == method {if nil != r && r.MatchString(string(text.Tokens)) {- newContent := bytes.ReplaceAll(text.Tokens, []byte(keyword), []byte(replacement))+ newContent := []byte(r.ReplaceAllString(string(text.Tokens), replacement))tree := parse.Inline("", newContent, luteEngine.ParseOptions)if nil == tree.Root.FirstChild {return false