branch: externals/kiwix
commit 686bac60f942665ddf695e761a1a37900c30885f
Author: stardiviner <numbch...@gmail.com>
Commit: stardiviner <numbch...@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