From 3443bdbc1eb3313468a45786614ea0ac74a8089b Mon Sep 17 00:00:00 2001 From: Valer Cara Date: Fri, 13 Oct 2023 19:06:32 +0300 Subject: [PATCH] fix: properly escape dot in directory-files regex, fixes false matches --- ox-hugo.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ox-hugo.el b/ox-hugo.el index 631ef57d..f0021f13 100644 --- a/ox-hugo.el +++ b/ox-hugo.el @@ -4879,7 +4879,7 @@ The optional argument NOERROR is passed to ;; Auto-update `org-id-locations' if it's nil or empty hash table ;; to avoid broken [[id:..]] type links. (when (or (eq org-id-locations nil) (zerop (hash-table-count org-id-locations))) - (org-id-update-id-locations (directory-files "." :full "\.org\$" :nosort) :silent)) + (org-id-update-id-locations (directory-files "." :full "\\.org$" :nosort) :silent)) (org-hugo--cleanup)