branch: externals/org commit a3b9bb8faabb79b9461e6edffd1ea1d6068b0b61 Author: Ihor Radchenko <yanta...@posteo.net> Commit: Ihor Radchenko <yanta...@posteo.net>
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.vermeu...@posteo.net Link: https://orgmode.org/list/ceef41267fcb44cdcbd7986f599bf...@posteo.net --- lisp/org-lint.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisp/org-lint.el b/lisp/org-lint.el index 351f92b162..ff2999cb8f 100644 --- a/lisp/org-lint.el +++ b/lisp/org-lint.el @@ -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)