fix(apis): sanitize user property name

This commit is contained in:
charlie
2025-11-12 17:00:24 +08:00
parent 8e6dc36ee2
commit 2aa96b10a6

View File

@@ -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