diff --git a/Casks/t/themeengine.rb b/Casks/t/themeengine.rb index bfced9f58d..9b47c53d0f 100644 --- a/Casks/t/themeengine.rb +++ b/Casks/t/themeengine.rb @@ -10,10 +10,10 @@ cask "themeengine" do livecheck do url :url strategy :git do |tags| - tags.map do |tag| + tags.filter_map do |tag| match = tag.match(/^(\d+(?:\.\d+)*)\((\d+)\)$/i) "#{match[1]},#{match[2]}" if match - end.compact + end end end