class WebMock::URIAddressablePattern

def template_matches_uri?(template, uri)

def template_matches_uri?(template, uri)
  template.match(uri)
rescue Addressable::URI::InvalidURIError
  false
end