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:
|
||||
- "::Library/Homebrew/"
|
||||
coverage:
|
||||
round: nearest
|
||||
precision: 2
|
||||
status:
|
||||
project:
|
||||
default:
|
||||
threshold: 0.1
|
||||
threshold: 0.05%
|
||||
|
@ -3,7 +3,7 @@ module UnpackStrategy
|
||||
include UnpackStrategy
|
||||
|
||||
def self.can_extract?(path:, magic_number:)
|
||||
magic_number.match?(/\A(MSCF|MZ)/n)
|
||||
magic_number.match?(/\AMSCF/n)
|
||||
end
|
||||
|
||||
def extract_to_dir(unpack_dir, basename:, verbose:)
|
||||
|
Loading…
x
Reference in New Issue
Block a user