```ruby
class Regexp
  def wildcard_match?(other)
    self == other ||
    !!(other.is_a?(String) && other =~ self)
  end

  alias :eql? :==
end
```

Fix warning when running tests under Ruby 1.8
user
```ruby
class Regexp
  def wildcard_match?(other)
    self == other ||
    !!(other.is_a?(String) && other =~ self)
  end

  alias_method :eql?, :==
end
```
assistant