Skip to content

An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作

:art: No longer trim spaces for the keyword and replacement https://github.com/siyuan-note/siyuan/issues/9229 Fix https://github.com/siyuan-note/siyuan/issues/9229

Danielf98be60aa554
diff --git a/kernel/model/search.go b/kernel/model/search.go
index d04d090563..c8c29131e5 100644
--- a/kernel/model/search.go
+++ b/kernel/model/search.go
@@ -215,9 +215,7 @@ func FindReplace(keyword, replacement string, ids []string, paths, boxes []strin
return
}
- keyword = strings.TrimSpace(keyword)
- replacement = strings.TrimSpace(replacement)
-
+ // No longer trim spaces for the keyword and replacement https://github.com/siyuan-note/siyuan/issues/9229
if keyword == replacement {
return
}