Преглед изворни кода

fix(dev): nonunique idents failing docs graph with

:convert-all-tags? enabled
Gabriel Horner пре 1 година
родитељ
комит
181766df11
1 измењених фајлова са 1 додато и 1 уклоњено
  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)
          :cljs (exists? js/process)
          :default false)
          :default false)
     ;; So that we don't have to change :user.{property|class} in our tests
     ;; 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
     (keyword user-namespace
              (str
              (str
               (->> (filter #(re-find #"[0-9a-zA-Z-]{1}" %) (seq name-string)) (apply str))
               (->> (filter #(re-find #"[0-9a-zA-Z-]{1}" %) (seq name-string)) (apply str))