From 1567c06c6b93c06ac88292b0c7697a346cfda82e Mon Sep 17 00:00:00 2001 From: Andreas Schwab Date: Thu, 25 Jul 2013 23:40:38 +0000 Subject: [PATCH] gnus-art.el (gnus-button-url-regexp): Make it match url in which punctuation characters follow parentheses (bug#14950) --- lisp/ChangeLog | 5 +++++ lisp/gnus-art.el | 6 ++++-- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 9f62dab44..a0b98be58 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,3 +1,8 @@ +2013-07-25 Andreas Schwab + + * gnus-art.el (gnus-button-url-regexp): Make it match url in which + punctuation characters follow parentheses (bug#14950). + 2013-07-23 Katsumi Yamaoka * gnus.el (gnus-continuum-version): diff --git a/lisp/gnus-art.el b/lisp/gnus-art.el index aa4b286f7..2fa8fdfd9 100644 --- a/lisp/gnus-art.el +++ b/lisp/gnus-art.el @@ -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) -- 2.25.1