浏览代码

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 年之前
父节点
当前提交
fb37d1538d
共有 1 个文件被更改,包括 1 次插入1 次删除
  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)))))