From d2be055fc5914f60d130da512b988d0eb052bbba Mon Sep 17 00:00:00 2001 From: Daniel <845765@qq.com> Date: Thu, 26 Sep 2024 16:05:36 +0800 Subject: [PATCH] :art: Moving doc search supports multiple keywords separated by spaces https://github.com/siyuan-note/siyuan/issues/12577 --- kernel/model/file.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/model/file.go b/kernel/model/file.go index 2d70b4ee3..74636e838 100644 --- a/kernel/model/file.go +++ b/kernel/model/file.go @@ -184,7 +184,7 @@ func SearchDocsByKeyword(keyword string, flashcard bool) (ret []map[string]strin var rootBlocks []*sql.Block if 0 < len(keywords) { for _, box := range boxes { - if util.ContainsSubStr(box.Name, keywords) { + if gulu.Str.Contains(box.Name, keywords) { if flashcard { newFlashcardCount, dueFlashcardCount, flashcardCount := countBoxFlashcard(box.ID, deck, deckBlockIDs) if 0 < flashcardCount {