This commit is contained in:
Daniel 2024-12-01 18:25:44 +08:00
parent 6c7c737178
commit 2292f1a0a5
No known key found for this signature in database
GPG key ID: 86211BA83DF03017

View file

@ -94,7 +94,9 @@ func GetBackmentionDoc(defID, refTreeID, keyword string, containChildren bool) (
}
mentionBlockIDs = gulu.Str.RemoveDuplicatedElem(mentionBlockIDs)
mentionKeywords = strings.Split(keyword, " ")
if "" != keyword {
mentionKeywords = append(mentionKeywords, strings.Split(keyword, " ")...)
}
mentionKeywords = gulu.Str.RemoveDuplicatedElem(mentionKeywords)
var refTree *parse.Tree