Explorar o código

fix(dev): nonunique idents failing docs graph with

:convert-all-tags? enabled
Gabriel Horner hai 1 ano
pai
achega
181766df11
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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))