]> git.eshelyaron.com Git - emacs.git/commitdiff
Regexp-quote github domains in bug-reference
authorLars Ingebrigtsen <larsi@gnus.org>
Fri, 22 Oct 2021 14:57:04 +0000 (16:57 +0200)
committerLars Ingebrigtsen <larsi@gnus.org>
Fri, 22 Oct 2021 14:57:04 +0000 (16:57 +0200)
* lisp/progmodes/bug-reference.el
(bug-reference--build-forge-setup-entry): Regexp-quote the domain
(bug#51316).

lisp/progmodes/bug-reference.el

index fd435eadfe852d3978bd5eca13df211a769e21d1..d7b12db22118752e69dfae735cad97b31bc2d1e7 100644 (file)
@@ -270,7 +270,8 @@ via the internet it might also be http.")
 ;; possibly different projects are also supported.
 (cl-defmethod bug-reference--build-forge-setup-entry
   (host-domain (_forge-type (eql github)) protocol)
-  `(,(concat "[/@]" host-domain "[/:]\\([.A-Za-z0-9_/-]+\\)\\.git")
+  `(,(concat "[/@]" (regexp-quote host-domain)
+             "[/:]\\([.A-Za-z0-9_/-]+\\)\\.git")
     "\\(\\([.A-Za-z0-9_/-]+\\)?\\(?:#\\)\\([0-9]+\\)\\)\\>"
     ,(lambda (groups)
        (let ((ns-project (nth 1 groups)))