gnus-art.el (gnus-button-url-regexp): Make it match url in which punctuation characte...
authorAndreas Schwab <schwab@linux-m68k.org>
Thu, 25 Jul 2013 23:40:38 +0000 (23:40 +0000)
committerKatsumi Yamaoka <yamaoka@jpl.org>
Thu, 25 Jul 2013 23:40:38 +0000 (23:40 +0000)
lisp/ChangeLog
lisp/gnus-art.el

index 9f62dab..a0b98be 100644 (file)
@@ -1,3 +1,8 @@
+2013-07-25  Andreas Schwab  <schwab@linux-m68k.org>
+
+       * gnus-art.el (gnus-button-url-regexp): Make it match url in which
+       punctuation characters follow parentheses (bug#14950).
+
 2013-07-23  Katsumi Yamaoka  <yamaoka@jpl.org>
 
        * gnus.el (gnus-continuum-version):
index aa4b286..2fa8fdf 100644 (file)
@@ -7178,15 +7178,17 @@ groups."
          "\\(?:"
          ;; Match paired parentheses, e.g. in Wikipedia URLs:
          ;; http://thread.gmane.org/47B4E3B2.3050402@gmail.com
-         "[" chars punct "]+" "(" "[" chars punct "]+" "[" chars "]*)" "[" chars "]*"
+         "[" chars punct "]+" "(" "[" chars punct "]+" "[" chars "]*)"
+         "\\(?:" "[" chars punct "]+" "[" chars "]" "\\)?"
          "\\|"
-         "[" chars punct     "]+" "[" chars "]"
+         "[" chars punct "]+" "[" chars "]"
          "\\)"))
      (concat ;; XEmacs 21.4 doesn't support POSIX.
       "\\([-a-z0-9_=!?#$@~%&*+\\/:;.,]\\|\\w\\)+"
       "\\([-a-z0-9_=#$@~%&*+\\/]\\|\\w\\)"))
    "\\)")
   "Regular expression that matches URLs."
+  :version "24.4"
   :group 'gnus-article-buttons
   :type 'regexp)