Browse Source

:art: Improve find replace https://github.com/siyuan-note/siyuan/issues/8771

Daniel 2 years ago
parent
commit
58ffe8a3b5
1 changed files with 3 additions and 0 deletions
  1. 3 0
      kernel/model/search.go

+ 3 - 0
kernel/model/search.go

@@ -215,6 +215,9 @@ func FindReplace(keyword, replacement string, ids []string, paths, boxes []strin
 		return
 	}
 
+	keyword = strings.TrimSpace(keyword)
+	replacement = strings.TrimSpace(replacement)
+
 	if keyword == replacement {
 		return
 	}