diff options
| author | Katsumi Yamaoka | 2017-02-17 10:05:56 +0000 |
|---|---|---|
| committer | Katsumi Yamaoka | 2017-02-17 10:05:56 +0000 |
| commit | 630e2d2e6aeba60f178c6ef2b283622070b873b3 (patch) | |
| tree | 8b5b21904b3eeecf75dec42a5b0fa9664ab23823 | |
| parent | 79f017d5c3019f8bc2a5014beda28bb3b829a8e3 (diff) | |
| download | emacs-630e2d2e6aeba60f178c6ef2b283622070b873b3.tar.gz emacs-630e2d2e6aeba60f178c6ef2b283622070b873b3.zip | |
mm-add-meta-html-tag: Improve regexp
* lisp/gnus/mm-decode.el (mm-add-meta-html-tag):
Improve regexp to search html meta tag.
| -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." | |||
| 1413 | (let ((case-fold-search t)) | 1413 | (let ((case-fold-search t)) |
| 1414 | (goto-char (point-min)) | 1414 | (goto-char (point-min)) |
| 1415 | (if (re-search-forward "\ | 1415 | (if (re-search-forward "\ |
| 1416 | <meta\\s-+http-equiv=[\"']?content-type[\"']?\\s-+content=[\"']\ | 1416 | <meta\\s-+http-equiv=[\"']?content-type[\"']?\\s-+content=[\"']?\ |
| 1417 | text/\\(\\sw+\\)\\(?:;\\s-*charset=\\([^\"'>]+\\)\\)?[^>]*>" nil t) | 1417 | text/\\(\\sw+\\)\\(?:;\\s-*charset=\\([^\t\n\r \"'>]+\\)\\)?[^>]*>" nil t) |
| 1418 | (if (and (not force-charset) | 1418 | (if (and (not force-charset) |
| 1419 | (match-beginning 2) | 1419 | (match-beginning 2) |
| 1420 | (string-match "\\`html\\'" (match-string 1))) | 1420 | (string-match "\\`html\\'" (match-string 1))) |