[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/org a3b9bb8faa 3/4: org-lint: Fix #+INCLUDE keyword par
From: |
ELPA Syncer |
Subject: |
[elpa] externals/org a3b9bb8faa 3/4: org-lint: Fix #+INCLUDE keyword parsing |
Date: |
Fri, 4 Nov 2022 23:57:59 -0400 (EDT) |
branch: externals/org
commit a3b9bb8faabb79b9461e6edffd1ea1d6068b0b61
Author: Ihor Radchenko <yantar92@posteo.net>
Commit: Ihor Radchenko <yantar92@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.vermeulen@posteo.net
Link: https://orgmode.org/list/ceef41267fcb44cdcbd7986f599bf332@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)