mirror of
https://git.savannah.gnu.org/git/emacs/org-mode.git
synced 2024-09-12 21:10:10 +00:00
org-lint: Fix #+INCLUDE keyword parsing
* lisp/org-lint.el (org-lint-wrong-include-link-parameter): Use non-greedy regexp to parse included file name. Reported-by: gerard.vermeulen@posteo.net Link: https://orgmode.org/list/ceef41267fcb44cdcbd7986f599bf332@posteo.net
This commit is contained in:
parent
0d60013f0e
commit
a3b9bb8faa
|
@ -652,7 +652,7 @@ in description"
|
||||||
(when (equal (org-element-property :key k) "INCLUDE")
|
(when (equal (org-element-property :key k) "INCLUDE")
|
||||||
(let* ((value (org-element-property :value k))
|
(let* ((value (org-element-property :value k))
|
||||||
(path
|
(path
|
||||||
(and (string-match "^\\(\".+\"\\|\\S-+\\)[ \t]*" value)
|
(and (string-match "^\\(\".+?\"\\|\\S-+\\)[ \t]*" value)
|
||||||
(save-match-data
|
(save-match-data
|
||||||
(org-strip-quotes (match-string 1 value))))))
|
(org-strip-quotes (match-string 1 value))))))
|
||||||
(if (not path)
|
(if (not path)
|
||||||
|
|
Loading…
Reference in a new issue