فهرست منبع

: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
 	}