fix: CI errors

This commit is contained in:
Tienson Qin
2022-08-31 03:59:18 +08:00
parent 9e2d6e7cfb
commit f29ff96778

View File

@@ -238,9 +238,12 @@
(defn parse-property-value
"Parses non-string property values or any page-ref like values"
[v]
(if-some [res (text/parse-non-string-property-value v)]
res
(page-ref/get-page-name v)))
(let [v (string/trim v)]
(if-some [res (text/parse-non-string-property-value v)]
res
(if (string/starts-with? v "#")
(subs v 1)
(or (page-ref/get-page-name v) v)))))
(defn- build-property-two-arg
[e]