Commit f3e25d69 authored by Ted Zlatanov's avatar Ted Zlatanov
Browse files

* net/eww.el (eww): Trim URL with `string-trim'.

Suggested by Vibhav Pant <vibhavp@gmail.com>.
parent 15eb2ec1
2014-11-04 Teodor Zlatanov <tzz@lifelogs.com>
* net/eww.el (eww): Trim URL with `string-trim'.
Suggested by Vibhav Pant <vibhavp@gmail.com>.
2014-11-03 Lars Magne Ingebrigtsen <larsi@gnus.org>
* net/eww.el (eww-score-readability): Don't count comments positively.
......
......@@ -160,6 +160,7 @@ 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 (string-trim url))
(cond ((string-match-p "\\`file:/" url))
((string-match-p "\\`ftp://" url)
(user-error "FTP is not supported."))
......
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