(rcirc-url-regexp): Match entire url when it starts with "www".
authorEli Zaretskii <eliz@gnu.org>
Fri, 3 Mar 2006 11:44:11 +0000 (11:44 +0000)
committerEli Zaretskii <eliz@gnu.org>
Fri, 3 Mar 2006 11:44:11 +0000 (11:44 +0000)
lisp/ChangeLog
lisp/net/rcirc.el

index f82c29d..247bef9 100644 (file)
@@ -1,3 +1,8 @@
+2006-03-03  Ryan Yeske  <rcyeske@gmail.com>
+
+       * net/rcirc.el (rcirc-url-regexp): Match entire url when it starts
+       with "www".
+
 2006-03-03  Ken Manheimer  <ken.manheimer@gmail.com>
 
        allout.el: Restablished intermediate missing comment header to
index f2eff37..f5cf1ec 100644 (file)
@@ -1635,12 +1635,13 @@ ones added to the list automatically are marked with an asterisk."
 (defvar rcirc-url-regexp
   (rx-to-string
    `(and word-boundary
-        (or "www."
-            (and (or "http" "https" "ftp" "file" "gopher" "news" "telnet" 
-                     "wais" "mailto")
-                 "://"
-                 (1+ (char "-a-zA-Z0-9_."))
-                 (optional ":" (1+ (char "0-9"))))
+        (or (and 
+             (or (and (or "http" "https" "ftp" "file" "gopher" "news" 
+                          "telnet" "wais" "mailto")
+                      "://")
+                 "www.")
+             (1+ (char "-a-zA-Z0-9_."))
+             (optional ":" (1+ (char "0-9"))))
             (and (1+ (char "-a-zA-Z0-9_."))
                  (or ".com" ".net" ".org")
                  word-boundary))