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

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

[nongnu] elpa/toc-org ce9e49303c 089/128: simply use downcase instead of


From: ELPA Syncer
Subject: [nongnu] elpa/toc-org ce9e49303c 089/128: simply use downcase instead of replace-regexp-in-string
Date: Sun, 2 Jan 2022 09:59:12 -0500 (EST)

branch: elpa/toc-org
commit ce9e49303c602c30c58ae98d3ce5202e8419a3bc
Author: Sergei Nosov <sergei.nosov@gmail.com>
Commit: Sergei Nosov <sergei.nosov@gmail.com>

    simply use downcase instead of replace-regexp-in-string
---
 toc-org.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/toc-org.el b/toc-org.el
index 80a71961a6..861a55ace9 100644
--- a/toc-org.el
+++ b/toc-org.el
@@ -194,7 +194,7 @@ auxiliary text."
   "Given a heading, transform it into a href using the GitHub
 rules."
   (let* ((spc-fix (replace-regexp-in-string " " "-" str))
-         (upcase-fix (replace-regexp-in-string "[A-Z]" 'downcase spc-fix t))
+         (upcase-fix (downcase spc-fix))
          (special-chars-fix (replace-regexp-in-string 
toc-org-special-chars-regexp "" upcase-fix t))
          (hrefified-base (concat "#" special-chars-fix))
          (hrefified hrefified-base)



reply via email to

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