Fix detecting P7Zip from symbol.

This commit is contained in:
Markus Reiter 2018-09-03 21:40:19 +02:00
parent beb6656278
commit b00b1f5ecd

View File

@ -71,7 +71,7 @@ module UnpackStrategy
}.fetch(type, type)
begin
const_get(type.to_s.split("_").map(&:capitalize).join)
const_get(type.to_s.split("_").map(&:capitalize).join.gsub(/\d+[a-z]/, &:upcase))
rescue NameError
nil
end