浏览代码

: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

Daniel 1 年之前
父节点
当前提交
f98be60aa5
共有 1 个文件被更改,包括 1 次插入3 次删除
  1. 1 3
      kernel/model/search.go

+ 1 - 3
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
 	}