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 #" ")