]> git.eshelyaron.com Git - emacs.git/commitdiff
lisp/gnus/mm-decode.el (mm-add-meta-html-tag): Fix regexp matching meta tag
authorKatsumi Yamaoka <yamaoka@jpl.org>
Tue, 17 Sep 2013 10:21:24 +0000 (10:21 +0000)
committerKatsumi Yamaoka <yamaoka@jpl.org>
Tue, 17 Sep 2013 10:21:24 +0000 (10:21 +0000)
lisp/gnus/ChangeLog
lisp/gnus/mm-decode.el

index 99c2f85ee6c9850178a28e1d79eea98287427633..18e0e3b25b15d498f508be6fc1474da399d9e25b 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 28d930b55f7f57e950f9dead989c384021382a76..07e66b30e58310e436ac1d62fccd67cc02b5e032 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)))