mirror of
https://github.com/logseq/logseq.git
synced 2026-05-01 01:16:27 +00:00
fix: some tests on graph_parser
This commit is contained in:
@@ -238,12 +238,14 @@
|
||||
(defn parse-property-value
|
||||
"Parses non-string property values or any page-ref like values"
|
||||
[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)))))
|
||||
(let [result (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)))]
|
||||
(if (string? result)
|
||||
(string/trim result)
|
||||
result)))
|
||||
|
||||
(defn- build-property-two-arg
|
||||
[e]
|
||||
|
||||
Reference in New Issue
Block a user