commit 768716b6fcc814b06360b99ad70bce44c0eb4a32
parent 40c8a1db186a4ec79d87805018237234c0aad878
Author: Oleh Krehel <ohwoeowho@gmail.com>
Date: Mon, 15 Jun 2020 11:36:12 +0200
org-download.el (org-download--parse-link): Match file links on MacOS
Fixes #126
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/org-download.el b/org-download.el
@@ -454,7 +454,7 @@ It's inserted before the image link and is used to annotate it.")
(defun org-download--parse-link (link)
(cond ((image-type-from-file-name link)
(list link nil))
- ((string-match "^file:///" link)
+ ((string-match "^file:/+" link)
(list link nil))
(t
(let ((buffer (url-retrieve-synchronously link t)))