From c2cd20436312fce5518c977e615fdce22dee93b2 Mon Sep 17 00:00:00 2001 From: Daniel <845765@qq.com> Date: Wed, 3 Apr 2024 11:13:48 +0800 Subject: [PATCH] :art: Improve block ref search ID extraction https://github.com/siyuan-note/siyuan/issues/10848 --- kernel/model/search.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/kernel/model/search.go b/kernel/model/search.go index e1a93c31c..d36a500a9 100644 --- a/kernel/model/search.go +++ b/kernel/model/search.go @@ -1107,6 +1107,8 @@ func fullTextSearchRefBlock(keyword string, beforeLen int, onlyDoc bool) (ret [] } func extractID(content string) (ret string) { + // Improve block ref search ID extraction https://github.com/siyuan-note/siyuan/issues/10848 + if 22 > len(content) { return }