diff --git a/Library/Homebrew/unpack_strategy.rb b/Library/Homebrew/unpack_strategy.rb index 54c7dc1d80..69edf79f2d 100644 --- a/Library/Homebrew/unpack_strategy.rb +++ b/Library/Homebrew/unpack_strategy.rb @@ -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