Commit b376580e authored by Stefan Kangas's avatar Stefan Kangas
Browse files

Prefer HTTPS to HTTP in thing-at-point

* lisp/thingatpt.el (thing-at-point-url-at-point): Prefer HTTPS to
HTTP.
parent ad47beb8
Pipeline #26885 failed with stages
in 176 minutes and 53 seconds
......@@ -565,9 +565,9 @@ looks like an email address, \"ftp://\" if it starts with
;; If it looks like ftp.example.com. treat it as ftp.
(if (string-match "\\`ftp\\." str)
(setq str (concat "ftp://" str)))
;; If it looks like www.example.com. treat it as http.
;; If it looks like www.example.com. treat it as https.
(if (string-match "\\`www\\." str)
(setq str (concat "http://" str)))
(setq str (concat "https://" str)))
;; Otherwise, it just isn't a URI.
(setq str nil)))
str)))
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment