Browse Source

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.
Bastien Guerry 5 years ago
parent
commit
fb37d1538d
1 changed files with 1 additions and 1 deletions
  1. 1 1
      contrib/lisp/htmlize.el

+ 1 - 1
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)))))