branch: externals/ivy-hydra
commit 778d8bffa33ae0bf432aa23370bb2a535d2132ce
Author: Basil L. Contovounesios <[email protected]>
Commit: Basil L. Contovounesios <[email protected]>

    * counsel.el (counsel-org-files): Simplify regexp.
    
    Remove capture groups no longer used.
    
    Re: #2745.
---
 counsel.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/counsel.el b/counsel.el
index 8a5df31..107524e 100644
--- a/counsel.el
+++ b/counsel.el
@@ -3796,7 +3796,7 @@ include attachments of other Org buffers."
   (let (dirs)
     (save-excursion
       (goto-char (point-min))
-      (while (re-search-forward "^:\\(ATTACH_DIR\\|ID\\):[\t ]+\\(.*\\)$" nil 
t)
+      (while (re-search-forward "^:\\(?:ATTACH_DIR\\|ID\\):[\t ]+.*$" nil t)
         (let ((dir (org-attach-dir)))
           (when dir
             (push dir dirs)))))

Reply via email to