From fb37d1538de5f3559dd7b81ecd98aeb758400e63 Mon Sep 17 00:00:00 2001 From: Bastien Guerry Date: Sat, 12 Jan 2013 14:56:56 +0100 Subject: [PATCH] htmlize.el (htmlize-create-auto-links): Fix link regexp * htmlize.el (htmlize-create-auto-links): Fix link regexp. Thanks to Daniel Dehennin for reporting this. --- contrib/lisp/htmlize.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contrib/lisp/htmlize.el b/contrib/lisp/htmlize.el index 14647b783..78e0387f0 100644 --- a/contrib/lisp/htmlize.el +++ b/contrib/lisp/htmlize.el @@ -819,7 +819,7 @@ This is used to protect mailto links without modifying their meaning." (uri (concat "mailto:" (htmlize-despam-address address)))) (htmlize-make-link-overlay beg end uri))) (goto-char (point-min)) - (while (re-search-forward "<\\(\\(URL:\\)?\\([a-zA-Z]+://[^;]+\\)\\)>" + (while (re-search-forward "<\\(\\(URL:\\)?\\([a-zA-Z]+://[^;>]+\\)\\)>" nil t) (htmlize-make-link-overlay (match-beginning 0) (match-end 0) (match-string 3))))) -- 2.11.4.GIT