Explorar el Código

Correct the list of crypto extensions

They were the same as the archive/compressed extensions, and I never noticed!
Benjamin Sago hace 9 años
padre
commit
45c93b1b63
Se han modificado 1 ficheros con 1 adiciones y 2 borrados
  1. 1 2
      src/info/filetype.rs

+ 1 - 2
src/info/filetype.rs

@@ -51,8 +51,7 @@ impl<'_> File<'_> {
 
     pub fn is_crypto(&self) -> bool {
         self.extension_is_one_of( &[
-            "zip", "tar", "Z", "gz", "bz2", "a", "ar", "7z",
-            "iso", "dmg", "tc", "rar", "par",
+            "asc", "enc", "gpg", "pgp", "sig", "signature", "pfx", "p12",
         ])
     }