From 39f1b4da379b274ee6b47b983ca930f8e7fdebee Mon Sep 17 00:00:00 2001 From: Liang Ding Date: Wed, 15 Feb 2023 11:17:47 +0800 Subject: [PATCH] =?UTF-8?q?:bug:=20=E6=89=93=E5=BC=80=E8=87=AA=E5=AE=9A?= =?UTF-8?q?=E4=B9=89=E5=B1=9E=E6=80=A7=E6=90=9C=E7=B4=A2=E9=80=89=E9=A1=B9?= =?UTF-8?q?=E5=90=8E=E5=87=BA=E7=8E=B0=E5=A4=9A=E4=BD=99=E6=90=9C=E7=B4=A2?= =?UTF-8?q?=E7=BB=93=E6=9E=9C=20Fix=20https://github.com/siyuan-note/siyua?= =?UTF-8?q?n/issues/7367?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- kernel/model/search.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/model/search.go b/kernel/model/search.go index 42d490f66..0b62bd1fc 100644 --- a/kernel/model/search.go +++ b/kernel/model/search.go @@ -735,7 +735,7 @@ func customIALFilter(query string) string { reg := strings.TrimPrefix(query, "\"") reg = strings.TrimSuffix(reg, "\"") reg = regexp.QuoteMeta(reg) - reg = "custom\\-.*" + reg + ".*\\=.*" + reg + ".*\"" + reg = "custom\\-.*" + reg + ".*" return " AND ial REGEXP '" + reg + "'" }