mirror of
https://github.com/logseq/logseq.git
synced 2026-04-29 00:24:51 +00:00
Decouple graph-parser util from app util usage
For tiny util heavily used fns like safe-re-find and uuid-string?, decouple graph-parser from so much of the app
This commit is contained in:
@@ -4,8 +4,7 @@
|
||||
[frontend.db :as db]
|
||||
[frontend.db.default :as default-db]
|
||||
[frontend.state :as state]
|
||||
[frontend.util :as util]
|
||||
[logseq.graph-parser.util :as gp-util]))
|
||||
[frontend.util :as util]))
|
||||
|
||||
(defn- build-links
|
||||
[links]
|
||||
@@ -46,7 +45,7 @@
|
||||
;; slow
|
||||
(defn- uuid-or-asset?
|
||||
[id]
|
||||
(or (gp-util/uuid-string? id)
|
||||
(or (util/uuid-string? id)
|
||||
(string/starts-with? id "../assets/")
|
||||
(= id "..")
|
||||
(string/starts-with? id "assets/")
|
||||
|
||||
Reference in New Issue
Block a user