Merge pull request #4559 from reitermarkus/fix-cab

Don’t match `MZ` for `Cab`.
This commit is contained in:
Mike McQuaid 2018-07-27 14:10:54 +01:00 committed by GitHub
commit b335a7357b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 3 deletions

View File

@ -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%

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:)