Browse Source

fix(dev): nonunique idents failing docs graph with

:convert-all-tags? enabled
Gabriel Horner 1 year ago
parent
commit
181766df11
1 changed files with 1 additions and 1 deletions
  1. 1 1
      deps/db/src/logseq/db/frontend/db_ident.cljc

+ 1 - 1
deps/db/src/logseq/db/frontend/db_ident.cljc

@@ -68,7 +68,7 @@
          :cljs (exists? js/process)
          :default false)
     ;; So that we don't have to change :user.{property|class} in our tests
-    (keyword user-namespace (-> name-string (string/replace "/" "-") (string/replace-first #"^\d+" "NUM-")))
+    (keyword user-namespace (-> name-string (string/replace "/" "-") (string/replace-first #"^\d" "NUM-")))
     (keyword user-namespace
              (str
               (->> (filter #(re-find #"[0-9a-zA-Z-]{1}" %) (seq name-string)) (apply str))