From 5035bdeaf0159f6a0c45112fadf17226542d6cd7 Mon Sep 17 00:00:00 2001 From: aoliva-sefas <104577334+aoliva-sefas@users.noreply.github.com> Date: Thu, 29 Feb 2024 15:09:07 +0100 Subject: [PATCH] feat: add tar mimetype and extension (#57) --- src/model/pattern-tree.ts | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/src/model/pattern-tree.ts b/src/model/pattern-tree.ts index 1f34129..bcd054a 100644 --- a/src/model/pattern-tree.ts +++ b/src/model/pattern-tree.ts @@ -1016,13 +1016,23 @@ add("nes", ["0x4E", "0x45", "0x53", "0x1A"]); add( "tar", ["0x75", "0x73", "0x74", "0x61", "0x72", "0x00", "0x30", "0x30"], - undefined, + { + // As per Mozilla documentation available at: + // https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types/Common_types + // or wikipedia page: + // https://en.wikipedia.org/wiki/List_of_archive_formats + mime: "application/x-tar", + extension: "tar" + }, 0x101 ); add( "tar", ["0x75", "0x73", "0x74", "0x61", "0x72", "0x20", "0x20", "0x00"], - undefined, + { + mime: "application/x-tar", + extension: "tar" + }, 0x101 );