Commit 6c3f93c9 by Christian Franke Committed by Torkel Ödegaard

Docs: Fix advanced variable formatting examples (#16691)

parent b9ff1923
...@@ -57,7 +57,7 @@ Formats multi-value variable into a regex string. ...@@ -57,7 +57,7 @@ Formats multi-value variable into a regex string.
```bash ```bash
servers = ['test1.', 'test2'] servers = ['test1.', 'test2']
String to interpolate: '${servers:regex}' String to interpolate: '${servers:regex}'
Interpolation result: '(test\.|test2)' Interpolation result: '(test1\.|test2)'
``` ```
### Pipe ### Pipe
...@@ -66,7 +66,7 @@ Formats multi-value variable into a pipe-separated string. ...@@ -66,7 +66,7 @@ Formats multi-value variable into a pipe-separated string.
```bash ```bash
servers = ['test1.', 'test2'] servers = ['test1.', 'test2']
String to interpolate: '${servers:pipe}' String to interpolate: '${servers:pipe}'
Interpolation result: 'test.|test2' Interpolation result: 'test1.|test2'
``` ```
### Csv ### Csv
...@@ -75,7 +75,7 @@ Formats multi-value variable as a comma-separated string. ...@@ -75,7 +75,7 @@ Formats multi-value variable as a comma-separated string.
```bash ```bash
servers = ['test1', 'test2'] servers = ['test1', 'test2']
String to interpolate: '${servers:csv}' String to interpolate: '${servers:csv}'
Interpolation result: 'test,test2' Interpolation result: 'test1,test2'
``` ```
### Json ### Json
......
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