]> git.eshelyaron.com Git - emacs.git/commitdiff
Support HTTPS URLs in newsticker-add-url
authorStefan Kangas <stefankangas@gmail.com>
Wed, 25 Oct 2023 12:34:15 +0000 (14:34 +0200)
committerStefan Kangas <stefankangas@gmail.com>
Wed, 25 Oct 2023 14:27:08 +0000 (16:27 +0200)
* lisp/net/newst-backend.el (newsticker-add-url): Support HTTPS.

lisp/net/newst-backend.el

index 055a38a76e3b4462ada1a6ea3dcd726a9b6f5987..726134874ff2881671c877f26c9755df3f1c1e2e 100644 (file)
@@ -618,13 +618,13 @@ If URL is nil it is searched at point."
                    (end-of-line)
                    (and
                     (re-search-backward
-                     "http://"
+                     (rx "http" (? "s") "://")
                      (if (> (point) (+ (point-min) 100))
                          (- (point) 100)
                        (point-min))
                      t)
                     (re-search-forward
-                     "http://[-a-zA-Z0-9&/_.]*"
+                     (rx "http" (? "s") "://" (zero-or-more (any "-a-zA-Z0-9&/_.")))
                      (if (< (point) (- (point-max) 200))
                          (+ (point) 200)
                        (point-max))