removed duplicate Archives pattern in extension_set.rs

This commit is contained in:
Lynne Megido 2021-04-14 19:17:41 +10:00
parent 2713083a82
commit 83091c754d
Signed by: lynnesbian
GPG Key ID: F0A184B5213D9F90
2 changed files with 4 additions and 3 deletions

View File

@ -6,7 +6,7 @@ Dates are given in YYYY-MM-DD format.
- Added Apple iWork document formats to documents extension set
- Cleaned up and properly documented tests
- Renamed `Script` (in `formats.rs`) to `Shell`, in line with renaming in `paramaters.rs`
- Added .rpa (renpy archive) support
- Added .rpa (Ren'Py archive) support to infer backend
- Added system extension set
### v0.2.12 (2021-04-14)

View File

@ -43,9 +43,10 @@ impl ExtensionSet {
// many compressed file types follow the name scheme "application/x.+compressed.*" - maybe this can be used
// somehow to extract extensions for compressed files from mime_guess?
Self::Archives => vec!["zip", "tar", "gz", "zst", "xz", "rar", "7z", "bz", "bz2", "tgz", "rpa"],
Self::System => vec!["com", "dll", "exe", "sys", "reg", "nt", "cpl", "msi", "efi", "bio", "rcv", "mbr", "sbf", "grub", "ko", "dylib", "pdb", "hdmp", "crash",
Self::System => vec![
"com", "dll", "exe", "sys", "reg", "nt", "cpl", "msi", "efi", "bio", "rcv", "mbr", "sbf", "grub", "ko",
"dylib", "pdb", "hdmp", "crash",
],
Self::Archives => vec!["zip", "tar", "gz", "zst", "xz", "rar", "7z", "bz", "bz2", "tgz"],
}
}
}