Don’t match MZ for Cab.
This commit is contained in:
parent
5d4adead0b
commit
8a24472e2e
@ -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:)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user