Browse Source

fix: tests

Tienson Qin 1 year ago
parent
commit
1a98dcad91
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/main/frontend/db/query_dsl.cljs

+ 1 - 1
src/main/frontend/db/query_dsl.cljs

@@ -604,7 +604,7 @@ Some bindings in this fn:
                             (let [match' (string/replace (second matches) "#" tag-placeholder)]
                             (let [match' (string/replace (second matches) "#" tag-placeholder)]
                               (str "\"" page-ref/left-brackets match' page-ref/right-brackets "\"")))]
                               (str "\"" page-ref/left-brackets match' page-ref/right-brackets "\"")))]
       (some-> s
       (some-> s
-              (string/replace #"^(?!\")\[\[(.*?)\]\]" quoted-page-ref)
+              (string/replace #"\"?\[\[(.*?)\]\]\"?" quoted-page-ref)
               (string/replace text-util/between-re
               (string/replace text-util/between-re
                               (fn [[_ x]]
                               (fn [[_ x]]
                                 (->> (string/split x #" ")
                                 (->> (string/split x #" ")