From b00b1f5ecddd362079ab3abe15a8e3b8b7ec2648 Mon Sep 17 00:00:00 2001 From: Markus Reiter Date: Mon, 3 Sep 2018 21:40:19 +0200 Subject: [PATCH] Fix detecting `P7Zip` from symbol. --- Library/Homebrew/unpack_strategy.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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