Merge pull request #4821 from reitermarkus/p7zip-from-type
Fix detecting `P7Zip` from symbol.
This commit is contained in:
commit
8a28271ba8
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user