mirror of
https://github.com/logseq/logseq.git
synced 2026-04-29 00:24:51 +00:00
fix: non http links are not supported with mod+l
This commit is contained in:
@@ -136,8 +136,7 @@
|
||||
(let [{:keys [selection-start selection-end format selection value edit-id input]} m
|
||||
cur-pos (cursor/pos input)
|
||||
empty-selection? (= selection-start selection-end)
|
||||
selection-link? (and selection (or (util/starts-with? selection "http://")
|
||||
(util/starts-with? selection "https://")))
|
||||
selection-link? (and selection (gp-util/url? selection))
|
||||
[content forward-pos] (cond
|
||||
empty-selection?
|
||||
(config/get-empty-link-and-forward-pos format)
|
||||
|
||||
Reference in New Issue
Block a user