branch: externals-release/org
commit 3a050482386a255bee6c18a0605402cbbbcadac2
Author: Ihor Radchenko <yanta...@posteo.net>
Commit: Ihor Radchenko <yanta...@posteo.net>

    org-file-name-concat: Fix implementation for Emacs 27
    
    * lisp/org-compat.el (org-file-name-concat): Fix regexp stripping
    trailing / in the components.
---
 lisp/org-compat.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lisp/org-compat.el b/lisp/org-compat.el
index 59d34b661c..4c4178dbc8 100644
--- a/lisp/org-compat.el
+++ b/lisp/org-compat.el
@@ -207,7 +207,7 @@ inserted before concatenating."
              (mapcar
               (lambda (str)
                 (when (and str (not (seq-empty-p str))
-                           (string-match "\\(.+\\)/?" str))
+                           (string-match "\\(.+?\\)/?$" str))
                   (match-string 1 str)))
               (cons directory components)))
        "/"))))

Reply via email to