Regexp-quote github domains in bug-reference
* lisp/progmodes/bug-reference.el (bug-reference--build-forge-setup-entry): Regexp-quote the domain (bug#51316).
This commit is contained in:
parent
1f6cdeb12c
commit
9b6b5e37ef
1 changed files with 2 additions and 1 deletions
|
@ -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)))
|
||||
|
|
Loading…
Add table
Reference in a new issue