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
Nils Goroll
libvmod-re2
Commits
8fc8bdc6
Commit
8fc8bdc6
authored
Mar 28, 2016
by
Geoff Simmons
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add tests for non-capturing parentheses with the suball() function
parent
751883ce
Changes
1
Hide 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 @
8fc8bdc6
...
...
@@ -32,6 +32,10 @@ varnish v1 -vcl+backend {
set beresp.http.sub = barbaz.sub(beresp.http.foo, "\0\1\2");
set beresp.http.subf = re2.sub("(?:bar)(baz)", beresp.http.foo,
"\0\1\2");
set beresp.http.suball
= barbaz.suball(beresp.http.foo, "\0\1\2");
set beresp.http.suballf
= re2.suball("(?:bar)(baz)", beresp.http.foo, "\0\1\2");
}
} -start
...
...
@@ -47,6 +51,8 @@ client c1 {
expect resp.http.foo2f == "fallback"
expect resp.http.sub == "barbazbaz"
expect resp.http.subf == "barbazbaz"
expect resp.http.suball == "barbazbaz"
expect resp.http.suballf == "barbazbaz"
} -run
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