Extend regular expression to remove cookie when inserting Org links

This should also catch the empty cookies `[/]` and `[%]` now.
This commit is contained in:
Daniel Borchmann 2024-07-06 09:14:52 +02:00
parent 6f4baa885e
commit 0b82dd1945
No known key found for this signature in database
GPG Key ID: 784AA8DF0CCDF625

View File

@ -884,7 +884,7 @@ quickly loose their meaning."
;; Taken from `org--get-outline-path-1': ;; Taken from `org--get-outline-path-1':
(org-trim (org-trim
(replace-regexp-in-string (replace-regexp-in-string
"\\[[0-9]+%\\]\\|\\[[0-9]+/[0-9]+\\]" "" "\\[[0-9]*%\\]\\|\\[[0-9]+/[0-9]+\\]\\|\\[/\\]" ""
description))))))) description)))))))
(use-package ol-bbdb (use-package ol-bbdb