From 1a98dcad91ad4b6f425e98a12436da646f63c2a7 Mon Sep 17 00:00:00 2001 From: Tienson Qin Date: Sun, 15 Dec 2024 16:32:19 +0800 Subject: [PATCH] fix: tests --- src/main/frontend/db/query_dsl.cljs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/frontend/db/query_dsl.cljs b/src/main/frontend/db/query_dsl.cljs index ce485113d37..d462cc771c0 100644 --- a/src/main/frontend/db/query_dsl.cljs +++ b/src/main/frontend/db/query_dsl.cljs @@ -604,7 +604,7 @@ Some bindings in this fn: (let [match' (string/replace (second matches) "#" tag-placeholder)] (str "\"" page-ref/left-brackets match' page-ref/right-brackets "\"")))] (some-> s - (string/replace #"^(?!\")\[\[(.*?)\]\]" quoted-page-ref) + (string/replace #"\"?\[\[(.*?)\]\]\"?" quoted-page-ref) (string/replace text-util/between-re (fn [[_ x]] (->> (string/split x #" ")