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: Replace fails when search results contain mixed case in text elements https://github.com/siyuan-note/siyuan/issues/9171
Daniel45a4d05c9f54
diff --git a/kernel/model/search.go b/kernel/model/search.goindex cd7258860d..7510511930 100644--- a/kernel/model/search.go+++ b/kernel/model/search.go@@ -834,7 +834,7 @@ func replaceTextNode(text *ast.Node, method int, keyword string, replacement str// Replace fails when search results contain mixed case in text elements https://github.com/siyuan-note/siyuan/issues/9171keywords := strings.Split(keyword, " ")// keyword 可能是 "foo Foo" 使用空格分隔的大小写命中情况,这里统一转换小写后去重- if 1 < len(keywords) {+ if 0 < len(keywords) {var lowerKeywords []stringfor _, k := range keywords {lowerKeywords = append(lowerKeywords, strings.ToLower(k))