Skip to content
Permalink
Browse files
Fixing Regexp in the benchmark test (#234)
Signed-off-by: DiSiqueira <dieg0@live.com>
  • Loading branch information
disiqueira authored and kisielk committed Feb 28, 2017
1 parent ad4ce0e commit 599cba5e7b6137d46ddf58fb1765f5d928e69604
Showing 1 changed file with 1 addition and 1 deletion.
@@ -24,7 +24,7 @@ func BenchmarkMux(b *testing.B) {
func BenchmarkMuxAlternativeInRegexp(b *testing.B) {
router := new(Router)
handler := func(w http.ResponseWriter, r *http.Request) {}
router.HandleFunc("/v1/{v1:(a|b)}", handler)
router.HandleFunc("/v1/{v1:(?:a|b)}", handler)

requestA, _ := http.NewRequest("GET", "/v1/a", nil)
requestB, _ := http.NewRequest("GET", "/v1/b", nil)

0 comments on commit 599cba5

Please sign in to comment.