Skip to content

Commit

Permalink
Merge pull request #731 from valer-cara/main
Browse files Browse the repository at this point in the history
fix: properly escape dot in directory-files regex, fixes false matches
  • Loading branch information
kaushalmodi authored Feb 12, 2025
2 parents 8e7fbc9 + 3443bdb commit 8edf608
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ox-hugo.el
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit 8edf608

Please sign in to comment.