branch: externals/kiwix
commit 74ce07af718823fb62cfee4a0ed127e9a1fd5793
Author: stardiviner <[email protected]>
Commit: stardiviner <[email protected]>
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)