Browse Source

:art: Moving doc search supports multiple keywords separated by spaces https://github.com/siyuan-note/siyuan/issues/12577

Daniel 10 tháng trước cách đây
mục cha
commit
d2be055fc5
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      kernel/model/file.go

+ 1 - 1
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 {