mirror of
https://github.com/logseq/logseq.git
synced 2026-05-01 09:26:28 +00:00
fix: don't allow spaces in property keys
This commit is contained in:
@@ -171,7 +171,8 @@
|
||||
(distinct))
|
||||
properties (->> properties
|
||||
(medley/map-kv (fn [k v]
|
||||
(let [v (string/trim v)]
|
||||
(let [v (string/trim v)
|
||||
k (string/replace k " " "_")]
|
||||
(cond
|
||||
(and (= "\"" (first v) (last v))) ; wrapped in ""
|
||||
[(string/lower-case k) (string/trim (subs v 1 (dec (count v))))]
|
||||
|
||||
Reference in New Issue
Block a user