diff options
author | Katsumi Yamaoka <yamaoka@jpl.org> | 2017-02-17 10:05:56 +0000 |
---|---|---|
committer | Katsumi Yamaoka <yamaoka@jpl.org> | 2017-02-17 10:05:56 +0000 |
commit | 630e2d2e6aeba60f178c6ef2b283622070b873b3 (patch) | |
tree | 8b5b21904b3eeecf75dec42a5b0fa9664ab23823 /lisp/gnus/mm-decode.el | |
parent | 79f017d5c3019f8bc2a5014beda28bb3b829a8e3 (diff) | |
download | emacs-630e2d2e6aeba60f178c6ef2b283622070b873b3.tar.gz |
mm-add-meta-html-tag: Improve regexp
* lisp/gnus/mm-decode.el (mm-add-meta-html-tag):
Improve regexp to search html meta tag.
Diffstat (limited to 'lisp/gnus/mm-decode.el')
-rw-r--r-- | lisp/gnus/mm-decode.el | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lisp/gnus/mm-decode.el b/lisp/gnus/mm-decode.el index 6b539399596..6683d68a318 100644 --- a/lisp/gnus/mm-decode.el +++ b/lisp/gnus/mm-decode.el @@ -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 "\ -<meta\\s-+http-equiv=[\"']?content-type[\"']?\\s-+content=[\"']\ -text/\\(\\sw+\\)\\(?:;\\s-*charset=\\([^\"'>]+\\)\\)?[^>]*>" nil t) +<meta\\s-+http-equiv=[\"']?content-type[\"']?\\s-+content=[\"']?\ +text/\\(\\sw+\\)\\(?:;\\s-*charset=\\([^\t\n\r \"'>]+\\)\\)?[^>]*>" nil t) (if (and (not force-charset) (match-beginning 2) (string-match "\\`html\\'" (match-string 1))) |