emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] externals/denote 90ff0dec95 4/4: Fix denote--slug-no-punct for ex


From: ELPA Syncer
Subject: [elpa] externals/denote 90ff0dec95 4/4: Fix denote--slug-no-punct for extra characters
Date: Mon, 27 Nov 2023 03:57:57 -0500 (EST)

branch: externals/denote
commit 90ff0dec954f12160f20ed9b5c015e2582fc2438
Author: Protesilaos Stavrou <info@protesilaos.com>
Commit: Protesilaos Stavrou <info@protesilaos.com>

    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

[Prev in Thread] Current Thread [Next in Thread]