Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
libvmod-re2
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
uplex-varnish
libvmod-re2
Commits
642e67ad
Commit
642e67ad
authored
Mar 28, 2016
by
Geoff Simmons
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
test non-capturing parens with the extract() method and function
parent
156385e4
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
non_capture_paren.vtc
src/tests/non_capture_paren.vtc
+6
-0
No files found.
src/tests/non_capture_paren.vtc
View file @
642e67ad
...
@@ -36,6 +36,10 @@ varnish v1 -vcl+backend {
...
@@ -36,6 +36,10 @@ varnish v1 -vcl+backend {
= barbaz.suball(beresp.http.foo, "\0\1\2");
= barbaz.suball(beresp.http.foo, "\0\1\2");
set beresp.http.suballf
set beresp.http.suballf
= re2.suball("(?:bar)(baz)", beresp.http.foo, "\0\1\2");
= 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
} -start
...
@@ -53,6 +57,8 @@ client c1 {
...
@@ -53,6 +57,8 @@ client c1 {
expect resp.http.subf == "barbazbaz"
expect resp.http.subf == "barbazbaz"
expect resp.http.suball == "barbazbaz"
expect resp.http.suball == "barbazbaz"
expect resp.http.suballf == "barbazbaz"
expect resp.http.suballf == "barbazbaz"
expect resp.http.extract == "barbazbaz"
expect resp.http.extractf == "barbazbaz"
} -run
} -run
logexpect l1 -v v1 -d 1 -g vxid -q "VCL_Error" {
logexpect l1 -v v1 -d 1 -g vxid -q "VCL_Error" {
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment