mirror of https://github.com/logseq/logseq
fix: non http links are not supported with mod+l
parent
2685cd1325
commit
04fe16a17e
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue