Skip to content

Commit

Permalink
Feat: Update archive file extensions and mime types
Browse files Browse the repository at this point in the history
  • Loading branch information
hankertrix committed Dec 23, 2024
1 parent e5b48e5 commit da61bfd
Showing 1 changed file with 16 additions and 4 deletions.
20 changes: 16 additions & 4 deletions init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,6 @@ local ARCHIVE_MIME_TYPES = {
"application/bzip",
"application/bzip2",
"application/7z-compressed",
"application/rar-compressed",
"application/rar",
"application/xz",

Expand All @@ -211,14 +210,27 @@ local ARCHIVE_MIME_TYPES = {
-- The list of archive file extensions
---@type string[]
local ARCHIVE_FILE_EXTENSIONS = {
"zip",
"tar",
"7z",
"boz",
"bz",
"bz2",
"7z",
"bzip2",
"cb7",
"cbr",
"cbz",
"cbt",
"cbz",
"gz",
"gzip",
"rar",
"s7z",
"tar",
"tbz",
"tbz2",
"tgz",
"txz",
"xz",
"zip",
}

-- The list of mime type prefixes to remove
Expand Down

0 comments on commit da61bfd

Please sign in to comment.