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

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

[elpa] externals/transient 2c7b4d7f2a 03/19: Use string-suffix-p instead


From: Jonas Bernoulli
Subject: [elpa] externals/transient 2c7b4d7f2a 03/19: Use string-suffix-p instead of string-match-p
Date: Mon, 2 May 2022 05:08:24 -0400 (EDT)

branch: externals/transient
commit 2c7b4d7f2a4673e32353a111251516f7e7011643
Author: Jonas Bernoulli <jonas@bernoul.li>
Commit: Jonas Bernoulli <jonas@bernoul.li>

    Use string-suffix-p instead of string-match-p
---
 lisp/transient.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lisp/transient.el b/lisp/transient.el
index ae8e1e6522..2e426766cd 100644
--- a/lisp/transient.el
+++ b/lisp/transient.el
@@ -3094,7 +3094,7 @@ contribute to the value of the transient."
 For a switch return a boolean.  For an option return the value as
 a string, using the empty string for the empty value, or nil if
 the option does not appear in ARGS."
-  (if (string-match-p "=\\'" arg)
+  (if (string-suffix-p "=" arg)
       (save-match-data
         (when-let ((match (let ((case-fold-search nil)
                                 (re (format "\\`%s\\(?:=\\(.+\\)\\)?\\'"



reply via email to

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