mm-decode.el (mm-add-meta-html-tag): Fix regexp matching meta tag
authorKatsumi Yamaoka <yamaoka@jpl.org>
Tue, 17 Sep 2013 10:20:07 +0000 (10:20 +0000)
committerKatsumi Yamaoka <yamaoka@jpl.org>
Tue, 17 Sep 2013 10:20:07 +0000 (10:20 +0000)
lisp/ChangeLog
lisp/mm-decode.el

index ee77808..a993127 100644 (file)
@@ -1,5 +1,7 @@
 2013-09-17  Katsumi Yamaoka  <yamaoka@jpl.org>
 
+       * mm-decode.el (mm-add-meta-html-tag): Fix regexp matching meta tag.
+
        * message.el (message-display-completion-list): Abolish.
        (message-completion-in-region): Use display-completion-list.
 
index 28d930b..07e66b3 100644 (file)
@@ -1415,7 +1415,7 @@ Return t if meta tag is added or replaced."
        (goto-char (point-min))
        (if (re-search-forward "\
 <meta\\s-+http-equiv=[\"']?content-type[\"']?\\s-+content=[\"']\
-text/\\(\\sw+\\)\\(?:\;\\s-*charset=\\(.+\\)\\)?[\"'][^>]*>" nil t)
+text/\\(\\sw+\\)\\(?:\;\\s-*charset=\\([^\"'>]+\\)\\)?" nil t)
            (if (and (not force-charset)
                     (match-beginning 2)
                     (string-match "\\`html\\'" (match-string 1)))