diff --git a/Library/Homebrew/rubocops/cask/shared_filelist_glob.rb b/Library/Homebrew/rubocops/cask/shared_filelist_glob.rb index 170d3e1e5f..8f2e4abbac 100644 --- a/Library/Homebrew/rubocops/cask/shared_filelist_glob.rb +++ b/Library/Homebrew/rubocops/cask/shared_filelist_glob.rb @@ -15,7 +15,7 @@ module RuboCop next unless symbols.include?(:trash) pair.each_descendant(:array).each do |array| - regex = /sfl\d"$/ + regex = /\.sfl\d"$/ message = "Use a glob (*) instead of a specific version (ie. sfl2) for trashing Shared File List paths" array.children.each do |item|