* url/url-util.el (url-get-url-at-point): Add missing group in

regex.
This commit is contained in:
Andreas Schwab 2017-06-18 09:09:34 +02:00
parent 5261a7d8bc
commit d03244e347

View file

@ -565,7 +565,7 @@ Has a preference for looking backward when not directly on a symbol."
(skip-chars-forward url-get-url-filename-chars))
(setq start (point)))
(setq url (buffer-substring-no-properties start (point))))
(if (and url (string-match "^(.*)\\.?$" url))
(if (and url (string-match "^(\\(.*\\))\\.?$" url))
(setq url (match-string 1 url)))
(if (and url (string-match "^URL:" url))
(setq url (substring url 4 nil)))