mirror of
https://github.com/logseq/logseq.git
synced 2026-04-28 16:15:21 +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:
@@ -9,7 +9,6 @@
|
||||
[frontend.state :as state]
|
||||
[logseq.graph-parser.text :as text]
|
||||
[frontend.util :as util]
|
||||
[logseq.graph-parser.util :as gp-util]
|
||||
[medley.core :as medley]
|
||||
[reitit.frontend.easy :as rfe]))
|
||||
|
||||
@@ -79,7 +78,7 @@
|
||||
"Create a new page"
|
||||
:page
|
||||
(let [name (:name path-params)
|
||||
block? (gp-util/uuid-string? name)]
|
||||
block? (util/uuid-string? name)]
|
||||
(if block?
|
||||
(if-let [block (db/entity [:block/uuid (medley/uuid name)])]
|
||||
(let [content (text/remove-level-spaces (:block/content block)
|
||||
|
||||
Reference in New Issue
Block a user