Skip to content

Commit

Permalink
improve the regex used to parse for the #+auto_tangle: option
Browse files Browse the repository at this point in the history
again based on the recommendation by @riscy
  • Loading branch information
yilkalargaw authored Feb 8, 2021
1 parent 820cdd1 commit 7bd6e9c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion org-auto-tangle.el
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 7bd6e9c

Please sign in to comment.