Commit 630e2d2e authored by Katsumi Yamaoka's avatar Katsumi Yamaoka
Browse files

mm-add-meta-html-tag: Improve regexp

* lisp/gnus/mm-decode.el (mm-add-meta-html-tag):
Improve regexp to search html meta tag.
parent 79f017d5
......@@ -1413,8 +1413,8 @@ Return t if meta tag is added or replaced."
(let ((case-fold-search t))
(goto-char (point-min))
(if (re-search-forward "\
text/\\(\\sw+\\)\\(?:;\\s-*charset=\\([^\"'>]+\\)\\)?[^>]*>" nil t)
text/\\(\\sw+\\)\\(?:;\\s-*charset=\\([^\t\n\r \"'>]+\\)\\)?[^>]*>" nil t)
(if (and (not force-charset)
(match-beginning 2)
(string-match "\\`html\\'" (match-string 1)))
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment