diff --git a/lib/guard.rb b/lib/guard.rb index 311cf32..4a324e7 100644 --- a/lib/guard.rb +++ b/lib/guard.rb @@ -79,7 +79,7 @@ module Guard when String, Symbol @groups.find { |group| group.name == filter.to_sym } when Regexp - @groups.find_all { |group| group.name =~ filter } + @groups.find_all { |group| group.name.to_s =~ filter } else @groups end