* net/eww.el (eww): Start of strings is \\`, not ^.
authorLars Magne Ingebrigtsen <larsi@gnus.org>
Mon, 24 Jun 2013 17:42:22 +0000 (19:42 +0200)
committerLars Magne Ingebrigtsen <larsi@gnus.org>
Mon, 24 Jun 2013 17:42:22 +0000 (19:42 +0200)
lisp/ChangeLog
lisp/net/eww.el

index 97b3fcb..60c1174 100644 (file)
@@ -1,3 +1,7 @@
+2013-06-24  Lars Magne Ingebrigtsen  <larsi@gnus.org>
+
+       * net/eww.el (eww): Start of strings is \\`, not ^.
+
 2013-06-24  Ivan Kanis  <ivan@kanis.fr>
 
        * net/shr.el (shr-browse-url): Fix interactive spec.
index 7b37eda..d573f09 100644 (file)
@@ -108,7 +108,7 @@ word(s) will be searched for via `eww-search-prefix'."
         ;; some site don't redirect final /
         (when (string= (url-filename (url-generic-parse-url url)) "")
           (setq url (concat url "/"))))
-    (unless (string-match-p "^file:" url)
+    (unless (string-match-p "\\'file:" url)
       (setq url (concat eww-search-prefix
                         (replace-regexp-in-string " " "+" url)))))
   (url-retrieve url 'eww-render (list url)))