Skip to content

Commit aa77ef1

Browse files
fix: ident from docs graph couldnt serialize to edn
1 parent f3f73e5 commit aa77ef1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

deps/db/src/logseq/db/frontend/db_ident.cljc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@
6868
:cljs (exists? js/process)
6969
:default false)
7070
;; So that we don't have to change :user.{property|class} in our tests
71-
(keyword user-namespace (-> name-string (string/replace #"/|\s+" "-") (string/replace-first #"^(\d)" "NUM-$1")))
71+
(keyword user-namespace (-> name-string (string/replace #"[/()]|\s+" "-") (string/replace-first #"^(\d)" "NUM-$1")))
7272
(keyword user-namespace
7373
(str
7474
(->> (filter #(re-find #"[0-9a-zA-Z-]{1}" %) (seq name-string)) (apply str))

0 commit comments

Comments
 (0)