aboutsummaryrefslogtreecommitdiffhomepage
path: root/caddyconfig/caddyfile/parse_test.go
diff options
context:
space:
mode:
authorWeidiDeng <[email protected]>2023-10-13 14:28:20 +0800
committerGitHub <[email protected]>2023-10-13 02:28:20 -0400
commit1f60328e1740143f76bdee598281ebce8c4c8e3f (patch)
tree8409927dcac23d32129bdf533662174c005f4412 /caddyconfig/caddyfile/parse_test.go
parent0e204b730aa2b1fa0835336b1117eff8c420f713 (diff)
downloadcaddy-1f60328e1740143f76bdee598281ebce8c4c8e3f.tar.gz
caddy-1f60328e1740143f76bdee598281ebce8c4c8e3f.zip
caddyfile: Fix variadic placeholder false positive when token contains `:` (#5883)
Diffstat (limited to 'caddyconfig/caddyfile/parse_test.go')
-rw-r--r--caddyconfig/caddyfile/parse_test.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/caddyconfig/caddyfile/parse_test.go b/caddyconfig/caddyfile/parse_test.go
index b1104edf9..b270f1613 100644
--- a/caddyconfig/caddyfile/parse_test.go
+++ b/caddyconfig/caddyfile/parse_test.go
@@ -91,6 +91,10 @@ func TestParseVariadic(t *testing.T) {
input: "{args[0:10]}",
result: true,
},
+ {
+ input: "{args[0]}:{args[1]}:{args[2]}",
+ result: false,
+ },
} {
token := Token{
File: "test",