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

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

[elpa] externals/kiwix 74ce07a 065/192: fix query invalid when the query


From: Stefan Monnier
Subject: [elpa] externals/kiwix 74ce07a 065/192: fix query invalid when the query contains space
Date: Sat, 19 Dec 2020 00:41:34 -0500 (EST)

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

    fix query invalid when the query contains space
---
 kiwix.el | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/kiwix.el b/kiwix.el
index 65c1459..fea0143 100644
--- a/kiwix.el
+++ b/kiwix.el
@@ -229,7 +229,9 @@ for query string and library interactively."
 
 (defun org-wiki-link-open (link)
   "Open LINK in external wiki program."
-  (when (string-match "\\(?:(\\(.*\\)):\\)?\\([^] \n\t\r]*\\)"  link) ; 
(library):query
+  ;; The regexp: (library):query
+  ;; - query : should not exclude space
+  (when (string-match "\\(?:(\\(.*\\)):\\)?\\([^]\n\t\r]*\\)"  link) ; 
(library):query
     (let* (
            ;; convert between libraries full name and abbrev.
            (library (kiwix-get-library-fullname (or (match-string 1 link)



reply via email to

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