# File lib/merb-core/test/helpers/cookie_jar.rb, line 54
      def valid?(uri)
        uri.host =~ Regexp.new("#{Regexp.escape(domain)}$") &&
        uri.path =~ Regexp.new("^#{Regexp.escape(path)}")
      end