diff options
| -rw-r--r-- | lisp/net/mailcap.el | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/lisp/net/mailcap.el b/lisp/net/mailcap.el index b678df30bd4..aa0c1726553 100644 --- a/lisp/net/mailcap.el +++ b/lisp/net/mailcap.el | |||
| @@ -1066,8 +1066,10 @@ If FORCE, re-parse even if already parsed." | |||
| 1066 | extns nil))))) | 1066 | extns nil))))) |
| 1067 | 1067 | ||
| 1068 | (defun mailcap--regexp-quote-type (type) | 1068 | (defun mailcap--regexp-quote-type (type) |
| 1069 | (pcase-let ((`(,major ,minor) (split-string type "/"))) | 1069 | (if (not (string-search "/" type)) |
| 1070 | (concat major "/" (regexp-quote minor)))) | 1070 | type |
| 1071 | (pcase-let ((`(,major ,minor) (split-string type "/"))) | ||
| 1072 | (concat major "/" (regexp-quote minor))))) | ||
| 1071 | 1073 | ||
| 1072 | (defun mailcap-extension-to-mime (extn) | 1074 | (defun mailcap-extension-to-mime (extn) |
| 1073 | "Return the MIME content type of the file extensions EXTN." | 1075 | "Return the MIME content type of the file extensions EXTN." |