diff --git a/lisp/net/newst-backend.el b/lisp/net/newst-backend.el index 055a38a76e3..726134874ff 100644 --- a/lisp/net/newst-backend.el +++ b/lisp/net/newst-backend.el @@ -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))