diff options
| -rw-r--r-- | lisp/ChangeLog | 1 | ||||
| -rw-r--r-- | lisp/net/eww.el | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 9bfcd504199..ac0701f8619 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -4,6 +4,7 @@ | |||
| 4 | as plain URLs, even if they have spaces in them (bug#19556). | 4 | as plain URLs, even if they have spaces in them (bug#19556). |
| 5 | (eww): Also interpret things like "en.wikipedia.org/wiki/Free | 5 | (eww): Also interpret things like "en.wikipedia.org/wiki/Free |
| 6 | software" as an URL. | 6 | software" as an URL. |
| 7 | (eww): Don't interpret "org/foo" as an URL. | ||
| 7 | 8 | ||
| 8 | 2015-01-10 Daniel Colascione <dancol@dancol.org> | 9 | 2015-01-10 Daniel Colascione <dancol@dancol.org> |
| 9 | 10 | ||
diff --git a/lisp/net/eww.el b/lisp/net/eww.el index 8278e3cc1ba..46b07605000 100644 --- a/lisp/net/eww.el +++ b/lisp/net/eww.el | |||
| @@ -258,7 +258,7 @@ word(s) will be searched for via `eww-search-prefix'." | |||
| 258 | (if (or (string-match "\\`https?:" url) | 258 | (if (or (string-match "\\`https?:" url) |
| 259 | ;; Also try to match "naked" URLs like | 259 | ;; Also try to match "naked" URLs like |
| 260 | ;; en.wikipedia.org/wiki/Free software | 260 | ;; en.wikipedia.org/wiki/Free software |
| 261 | (string-match "\\`[a-z._]+/" url) | 261 | (string-match "\\`[A-Za-z_]+\\.[A-Za-z._]+/" url) |
| 262 | (and (= (length (split-string url)) 1) | 262 | (and (= (length (split-string url)) 1) |
| 263 | (or (and (not (string-match-p "\\`[\"\'].*[\"\']\\'" url)) | 263 | (or (and (not (string-match-p "\\`[\"\'].*[\"\']\\'" url)) |
| 264 | (> (length (split-string url "[.:]")) 1)) | 264 | (> (length (split-string url "[.:]")) 1)) |