diff --git a/lib/cask/scopes.rb b/lib/cask/scopes.rb index 8142426b1..1e2544766 100644 --- a/lib/cask/scopes.rb +++ b/lib/cask/scopes.rb @@ -12,7 +12,7 @@ module Cask::Scopes cask_titles = Dir[tapspath.join("*", "Casks", "*.rb")] cask_titles.map { |c| # => "/usr/local/Library/Taps/example-tap/Casks/example.rb" - c.sub! /\.rb$/, '' + c.sub!(/\.rb$/, '') # => ".../example" c = c.split("/").last 3 # => ["example-tap", "Casks", "example"]