Commit 642e67ad authored by Geoff Simmons's avatar Geoff Simmons

test non-capturing parens with the extract() method and function

parent 156385e4
......@@ -36,6 +36,10 @@ varnish v1 -vcl+backend {
= barbaz.suball(beresp.http.foo, "\0\1\2");
set beresp.http.suballf
= re2.suball("(?:bar)(baz)", beresp.http.foo, "\0\1\2");
set beresp.http.extract
= barbaz.extract(beresp.http.foo, "\0\1\2");
set beresp.http.extractf
= re2.extract("(?:bar)(baz)", beresp.http.foo, "\0\1\2");
}
} -start
......@@ -53,6 +57,8 @@ client c1 {
expect resp.http.subf == "barbazbaz"
expect resp.http.suball == "barbazbaz"
expect resp.http.suballf == "barbazbaz"
expect resp.http.extract == "barbazbaz"
expect resp.http.extractf == "barbazbaz"
} -run
logexpect l1 -v v1 -d 1 -g vxid -q "VCL_Error" {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment