* lisp/net/mailcap.el (mailcap--regexp-quote-type): Make more
resilient in the presence of junk.
extns nil)))))
(defun mailcap--regexp-quote-type (type)
- (pcase-let ((`(,major ,minor) (split-string type "/")))
- (concat major "/" (regexp-quote minor))))
+ (if (not (string-search "/" type))
+ type
+ (pcase-let ((`(,major ,minor) (split-string type "/")))
+ (concat major "/" (regexp-quote minor)))))
(defun mailcap-extension-to-mime (extn)
"Return the MIME content type of the file extensions EXTN."