fix: tests

This commit is contained in:
Tienson Qin
2024-12-15 16:32:19 +08:00
parent 202be5cc7b
commit 1a98dcad91

View File

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