mirror of
https://git.savannah.gnu.org/git/emacs/org-mode.git
synced 2024-08-23 12:18:35 +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")
|
||||
(let* ((value (org-element-property :value k))
|
||||
(path
|
||||
(and (string-match "^\\(\".+\"\\|\\S-+\\)[ \t]*" value)
|
||||
(and (string-match "^\\(\".+?\"\\|\\S-+\\)[ \t]*" value)
|
||||
(save-match-data
|
||||
(org-strip-quotes (match-string 1 value))))))
|
||||
(if (not path)
|
||||
|
|
Loading…
Reference in a new issue