diff --git a/lisp/net/eww.el b/lisp/net/eww.el index e8eb09c..aa3e245 100644 --- a/lisp/net/eww.el +++ b/lisp/net/eww.el @@ -153,6 +153,10 @@ See also `eww-form-checkbox-selected-symbol'." If the input doesn't look like an URL or a domain name, the word(s) will be searched for via `eww-search-prefix'." (interactive "sEnter URL or keywords: ") + (setq url (replace-regexp-in-string (rx (or (: bos (* (any " \t\n"))) + (: (* (any " \t\n")) eos))) + "" + url)) (cond ((string-match-p "\\`file://" url)) ((string-match-p "\\`ftp://" url) (user-error "FTP is not supported."))