Commit 1fd00738 authored by Lars Magne Ingebrigtsen's avatar Lars Magne Ingebrigtsen
Browse files

(eww): Don't interpret "org/foo" as an URL.

parent 790ca72b
......@@ -4,6 +4,7 @@
as plain URLs, even if they have spaces in them (bug#19556).
(eww): Also interpret things like "
software" as an URL.
(eww): Don't interpret "org/foo" as an URL.
2015-01-10 Daniel Colascione <>
......@@ -258,7 +258,7 @@ word(s) will be searched for via `eww-search-prefix'."
(if (or (string-match "\\`https?:" url)
;; Also try to match "naked" URLs like
;; software
(string-match "\\`[a-z._]+/" url)
(string-match "\\`[A-Za-z_]+\\.[A-Za-z._]+/" url)
(and (= (length (split-string url)) 1)
(or (and (not (string-match-p "\\`[\"\'].*[\"\']\\'" url))
(> (length (split-string url "[.:]")) 1))
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