mirror of
https://github.com/logseq/logseq.git
synced 2026-05-01 09:26:28 +00:00
refactor: path/absolute?
This commit is contained in:
@@ -5,7 +5,8 @@
|
||||
[frontend.config :as config]
|
||||
[frontend.mobile.util :as mobile-util]
|
||||
[logseq.graph-parser.config :as gp-config]
|
||||
[clojure.string :as string]))
|
||||
[clojure.string :as string]
|
||||
[logseq.common.path :as path]))
|
||||
|
||||
(defn alias-enabled?
|
||||
[]
|
||||
@@ -89,7 +90,7 @@
|
||||
protocol-link?
|
||||
full-path
|
||||
|
||||
(util/absolute-path? full-path)
|
||||
(path/absolute? full-path)
|
||||
(str "file://" full-path)
|
||||
|
||||
:else
|
||||
@@ -112,4 +113,4 @@
|
||||
(normalize-asset-resource-url "https://x.com/a.pdf")
|
||||
(normalize-asset-resource-url "./a/b.pdf")
|
||||
(normalize-asset-resource-url "assets/a/b.pdf")
|
||||
(normalize-asset-resource-url "@图书/a/b.pdf"))
|
||||
(normalize-asset-resource-url "@图书/a/b.pdf"))
|
||||
|
||||
Reference in New Issue
Block a user