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

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

[elpa] externals/denote a4f11d3a77 32/32: Simplify regexp in denote--tri


From: ELPA Syncer
Subject: [elpa] externals/denote a4f11d3a77 32/32: Simplify regexp in denote--trim-right-token-characters
Date: Sat, 20 Jan 2024 00:57:44 -0500 (EST)

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

    Simplify regexp in denote--trim-right-token-characters
---
 denote.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/denote.el b/denote.el
index 3a85aad287..034c1d38bc 100644
--- a/denote.el
+++ b/denote.el
@@ -724,7 +724,7 @@ leading and trailing hyphen."
 
 (defun denote--trim-right-token-characters (str)
   "Remove =, - and _ from the end of STR."
-  (string-trim-right str "[=-\\_]+"))
+  (string-trim-right str "[=_-]+"))
 
 (defun denote--replace-consecutive-token-characters (str)
   "Replace consecutive characters with a single one in STR.



reply via email to

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