branch: externals/denote
commit 90ff0dec954f12160f20ed9b5c015e2582fc2438
Author: Protesilaos Stavrou <[email protected]>
Commit: Protesilaos Stavrou <[email protected]>

    Fix denote--slug-no-punct for extra characters
---
 denote.el | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/denote.el b/denote.el
index 0205b34869..f7af3051d9 100644
--- a/denote.el
+++ b/denote.el
@@ -629,9 +629,13 @@ Concretely, replace with spaces anything that matches the
 With optional EXTRA-CHARACTERS as a string, include them in the
 regexp to be replaced."
   (replace-regexp-in-string
-   (concat denote-excluded-punctuation-regexp
+   (concat "\\("
+           denote-excluded-punctuation-regexp
+           "\\|"
            denote-excluded-punctuation-extra-regexp
-           extra-characters)
+           "\\|"
+           extra-characters
+           "\\)")
    "" str))
 
 (defun denote--slug-hyphenate (str)

Reply via email to