Browse Source

org-info: Fix typo

* lisp/org-info.el (org-info-follow-link): Fix typo in regexp.
Nicolas Goaziou 1 year ago
parent
commit
7c14efd3e9
1 changed files with 1 additions and 1 deletions
  1. 1 1
      lisp/org-info.el

+ 1 - 1
lisp/org-info.el

@@ -66,7 +66,7 @@
 
 (defun org-info-follow-link (name)
   "Follow an Info file and node link specified by NAME."
-  (if (or (string-match "\\(.*\\)\\(:?#\\|::\\)\\(.*\\)" name)
+  (if (or (string-match "\\(.*\\)\\(?:#\\|::\\)\\(.*\\)" name)
           (string-match "\\(.*\\)" name))
       (let ((filename (match-string 1 name))
 	    (nodename-or-index (or (match-string 2 name) "Top")))