Don’t match MZ for Cab.

This commit is contained in:
Markus Reiter 2018-07-27 00:54:31 +02:00
parent 5d4adead0b
commit 8a24472e2e

View File

@ -3,7 +3,7 @@ module UnpackStrategy
include UnpackStrategy include UnpackStrategy
def self.can_extract?(path:, magic_number:) def self.can_extract?(path:, magic_number:)
magic_number.match?(/\A(MSCF|MZ)/n) magic_number.match?(/\AMSCF/n)
end end
def extract_to_dir(unpack_dir, basename:, verbose:) def extract_to_dir(unpack_dir, basename:, verbose:)