lib/miam/client.rb in miam-0.2.4.beta14 vs lib/miam/client.rb in miam-0.2.4.beta15
- old
+ new
@@ -525,14 +525,14 @@
def target_matched?(name)
result = true
if @options[:exclude]
- result &&= name !~ @options[:exclude]
+ result &&= @options[:exclude].all? {|r| name !~ r}
end
if @options[:target]
- result &&= name =~ @options[:target]
+ result &&= @options[:target].any? {|r| name =~ r}
end
result
end