mirror of
https://github.com/logseq/logseq.git
synced 2026-05-02 09:56:31 +00:00
@@ -36,10 +36,12 @@
|
||||
(= typ "Search")
|
||||
;; FIXME: alert error
|
||||
(not (contains? #{\# \* \/ \[} (first (second (:url (second block))))))
|
||||
(let [page (second (:url (second block)))]
|
||||
(when (and (not (util/starts-with? page "http"))
|
||||
(not (util/starts-with? page "file"))
|
||||
(not (string/ends-with? page ".html")))
|
||||
(let [page (second (:url (second block)))
|
||||
ext (some-> (util/get-file-ext page) keyword)]
|
||||
(when (and (not (util/starts-with? page "http:"))
|
||||
(not (util/starts-with? page "https:"))
|
||||
(not (util/starts-with? page "file:"))
|
||||
(not (contains? (config/supported-formats) ext)))
|
||||
page)))
|
||||
|
||||
(and
|
||||
|
||||
Reference in New Issue
Block a user