Use magic number for Adobe Air.
This commit is contained in:
parent
e8f7a88976
commit
04e97e82db
@ -5,7 +5,8 @@ module UnpackStrategy
|
||||
using Magic
|
||||
|
||||
def self.can_extract?(path)
|
||||
path.extname == ".air"
|
||||
mime_type = "application/vnd.adobe.air-application-installer-package+zip"
|
||||
path.magic_number.match?(/.{59}#{Regexp.escape(mime_type)}/)
|
||||
end
|
||||
|
||||
def dependencies
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user