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

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

[elpa] externals/kiwix feb09b6 06/13: Fix directory files matching regex


From: Stefan Monnier
Subject: [elpa] externals/kiwix feb09b6 06/13: Fix directory files matching regexp
Date: Mon, 4 Jan 2021 01:12:50 -0500 (EST)

branch: externals/kiwix
commit feb09b6e71c4e933e835b74b3b04a6d2df8b915d
Author: Stefan Monnier <monnier@iro.umontreal.ca>
Commit: stardiviner <numbchild@gmail.com>

    Fix directory files matching regexp
---
 kiwix.el | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/kiwix.el b/kiwix.el
index 1e5542e..47cae9d 100644
--- a/kiwix.el
+++ b/kiwix.el
@@ -102,7 +102,7 @@
 
 (defcustom kiwix-default-data-profile-name
   (when (kiwix-dir-detect)
-    (car (directory-files "~/.www.kiwix.org/kiwix" nil ".*\\.default")))
+    (car (directory-files "~/.www.kiwix.org/kiwix" nil ".*\\.default\\'")))
   "Specify the default Kiwix data profile path."
   :type 'string)
 
@@ -146,7 +146,7 @@ Currently Ivy (`ivy') and Helm (`helm') both supported."
   "Check out all available Kiwix libraries."
   (when (kiwix-dir-detect)
     (mapcar #'kiwix--get-library-name
-            (directory-files kiwix-default-library-dir nil ".*\.zim"))))
+            (directory-files kiwix-default-library-dir nil ".*\\.zim\\'"))))
 
 (defvar kiwix-libraries (kiwix-get-libraries)
   "A list of Kiwix libraries.")



reply via email to

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