MCPcopy
hub / github.com/vouch/vouch-proxy / regexMatcher

Function regexMatcher

pkg/providers/github/github_test.go:55–60  ·  view source on GitHub ↗
(expr string)

Source from the content-addressed store, hash-verified

53}
54
55func regexMatcher(expr string) ReqMatcher {
56 return func(r *http.Request) bool {
57 matches, _ := regexp.Match(expr, []byte(r.URL.String()))
58 return matches
59 }
60}
61
62func urlEquals(value string) ReqMatcher {
63 return func(r *http.Request) bool {

Calls

no outgoing calls

Tested by

no test coverage detected