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

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

[elpa] externals/kiwix 686bac6 068/192: fix query validating regexp


From: Stefan Monnier
Subject: [elpa] externals/kiwix 686bac6 068/192: fix query validating regexp
Date: Sat, 19 Dec 2020 00:41:35 -0500 (EST)

branch: externals/kiwix
commit 686bac60f942665ddf695e761a1a37900c30885f
Author: stardiviner <numbchild@gmail.com>
Commit: stardiviner <numbchild@gmail.com>

    fix query validating regexp
---
 kiwix.el | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/kiwix.el b/kiwix.el
index 7480bdb..908ab76 100644
--- a/kiwix.el
+++ b/kiwix.el
@@ -233,9 +233,7 @@ for query string and library interactively."
   ;; - query : should not exclude space
   (when (string-match "\\(?:(\\(.*\\)):\\)?\\([^]\n\t\r]*\\)"  link) ; 
(library):query
     (let* (
-           (library (if (string-match-p "\\`[a-zA-Z\ ]+\\'"
-                                        ;; query
-                                        (match-string 2 link)) ; validate 
query is English
+           (library (if (string-match-p "[a-zA-Z\ ]+" (match-string 2 link)) ; 
validate query is English
                         ;; convert between libraries full name and abbrev.
                         (kiwix-get-library-fullname (or (match-string 1 link)
                                                         "default"))



reply via email to

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