Skip to content

Commit

Permalink
feat: add tar mimetype and extension (#57)
Browse files Browse the repository at this point in the history
  • Loading branch information
aoliva-sefas authored Feb 29, 2024
1 parent fab5fb6 commit 5035bde
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions src/model/pattern-tree.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
);

Expand Down

0 comments on commit 5035bde

Please sign in to comment.