diff options
| author | Jack Nagel | 2014-10-28 22:49:40 -0500 |
|---|---|---|
| committer | Jack Nagel | 2014-10-28 22:49:40 -0500 |
| commit | 612c6537cd5131e30ff19fbce96f41a1be793202 (patch) | |
| tree | 05df027b555291d0218aae19385b8900f2d124e6 /Library | |
| parent | 44a53f7fdf251aa29f0bcb3f07481b7095a17acb (diff) | |
| download | homebrew-612c6537cd5131e30ff19fbce96f41a1be793202.tar.bz2 | |
Use start_with? instead of regexp
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Homebrew/cmd/doctor.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Library/Homebrew/cmd/doctor.rb b/Library/Homebrew/cmd/doctor.rb index 411c20a34..59212602d 100644 --- a/Library/Homebrew/cmd/doctor.rb +++ b/Library/Homebrew/cmd/doctor.rb @@ -661,7 +661,7 @@ def check_for_config_scripts paths.each do |p| next if whitelist.include? p.downcase - next if p =~ %r[^(#{real_cellar.to_s}|#{HOMEBREW_CELLAR.to_s})] + next if p.start_with?(real_cellar.to_s, HOMEBREW_CELLAR.to_s) configs = Dir["#{p}/*-config"] config_scripts << [p, configs.map { |c| File.basename(c) }] unless configs.empty? |
