mirror of
https://github.com/logseq/logseq.git
synced 2026-04-24 14:14:55 +00:00
fix(apis): sanitize user property name
This commit is contained in:
@@ -24,10 +24,7 @@
|
||||
(if (string? k)
|
||||
(-> k (string/trim)
|
||||
(string/replace " " "")
|
||||
(string/replace #"^[:_\s]+" "")
|
||||
(#(cond-> %
|
||||
(not (string/includes? % "/"))
|
||||
(string/lower-case))))
|
||||
(string/replace #"^[:_\s]+" ""))
|
||||
(str k)))
|
||||
|
||||
(defn get-sanitized-plugin-id
|
||||
|
||||
Reference in New Issue
Block a user