Merge pull request #4559 from reitermarkus/fix-cab
Don’t match `MZ` for `Cab`.
This commit is contained in:
commit
b335a7357b
@ -2,7 +2,9 @@ comment: off
|
|||||||
fixes:
|
fixes:
|
||||||
- "::Library/Homebrew/"
|
- "::Library/Homebrew/"
|
||||||
coverage:
|
coverage:
|
||||||
|
round: nearest
|
||||||
|
precision: 2
|
||||||
status:
|
status:
|
||||||
project:
|
project:
|
||||||
default:
|
default:
|
||||||
threshold: 0.1
|
threshold: 0.05%
|
||||||
|
@ -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