branch: externals/org
commit 9a3b22098eacff9e10f14e1785d4523229b89724
Merge: 84118cad6b 3a05048238
Author: Ihor Radchenko <yanta...@posteo.net>
Commit: Ihor Radchenko <yanta...@posteo.net>

    Merge branch 'bugfix'
---
 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 91192629a1..1a00e9a896 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