From 9f56840a1a07a06de97bd7904fde84df1bc6776f Mon Sep 17 00:00:00 2001 From: Ivan P <114432443+ipetrouchtchak-fi@users.noreply.github.com> Date: Thu, 14 Nov 2024 08:31:58 -0800 Subject: [PATCH] fix: Add some MS-related extensions and types (#336) * add some MS-related extensions and types * use permalinks --- src/custom-types.json | 29 ++++++++++++++++++++++++++++- 1 file changed, 28 insertions(+), 1 deletion(-) diff --git a/src/custom-types.json b/src/custom-types.json index f95ffdfc..1d0f598f 100644 --- a/src/custom-types.json +++ b/src/custom-types.json @@ -652,7 +652,12 @@ ] }, "image/pjpeg": { - "compressible": false + "compressible": false, + "extensions": ["jfif"], + "sources": [ + "https://github.com/microsoft/referencesource/blob/51cf7850defa8a17d815b4700b67116e3fa283c2/System.Web/MimeMapping.cs#L212", + "https://mimetype.io/image/pjpeg" + ] }, "image/png": { "compressible": false @@ -710,7 +715,10 @@ }, "message/rfc822": { "compressible": true, + "extensions": ["mht", "mhtml"], "sources": [ + "https://mimetype.io/message/rfc822", + "https://github.com/microsoft/referencesource/blob/51cf7850defa8a17d815b4700b67116e3fa283c2/System.Web/MimeMapping.cs#L235-L236", "http://en.wikipedia.org/wiki/MIME#Multipart_subtypes" ] }, @@ -949,5 +957,24 @@ "sources": [ "https://developer.mozilla.org/en-US/docs/Web/WebGL/Adding_2D_content_to_a_WebGL_context" ] + }, + "application/onenote": { + "extensions": ["one", "onea"], + "sources": [ + "https://github.com/microsoft/referencesource/blob/51cf7850defa8a17d815b4700b67116e3fa283c2/System.Web/MimeMapping.cs#L265-L266" + ] + }, + "application/vnd.visio": { + "extensions": ["vsdx", "vtx"], + "sources": [ + "https://mimetype.io/application/vnd.visio", + "https://learn.microsoft.com/en-us/office/client-developer/visio/introduction-to-the-visio-file-formatvsdx" + ] + }, + "application/vnd.ms-visio.viewer": { + "extensions": ["vdx"], + "sources": [ + "https://github.com/microsoft/referencesource/blob/51cf7850defa8a17d815b4700b67116e3fa283c2/System.Web/MimeMapping.cs#L379" + ] } }