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:
- "::Library/Homebrew/"
coverage:
round: nearest
precision: 2
status:
project:
default:
threshold: 0.1
default:
threshold: 0.05%

View File

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