branch: elpa/org-auto-tangle
commit 7bd6e9c934bc659b026b0d1497b2013da44597d8
Author: lispy-dobby <[email protected]>
Commit: GitHub <[email protected]>

    improve the regex used to parse for the #+auto_tangle: option
    
    again based on the recommendation by @riscy
---
 org-auto-tangle.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/org-auto-tangle.el b/org-auto-tangle.el
index 6402ea7c25..03bb0190db 100644
--- a/org-auto-tangle.el
+++ b/org-auto-tangle.el
@@ -56,7 +56,7 @@
       (widen)
       (save-excursion
        (goto-char (point-min))
-       (when (re-search-forward "^#\\+auto_tangle: \\(.*\\)" nil :noerror)
+       (when (re-search-forward "^#\\+auto_tangle:[ \t]+\\([^ \f\t\n\r\v]+\\)[ 
\t]*" nil :noerror)
          (match-string 1))))))
 
 (defun org-auto-tangle-async (file)

Reply via email to