Pārlūkot izejas kodu

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 12 gadi atpakaļ
vecāks
revīzija
fb37d1538d
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  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)))))