Fix examples in manual
This commit is contained in:
1 parent
b4a9ea56ae
commit
a6656edc7c
1 file changed
+6
-7
@@ -1705,11 +1705,10 @@ sections:
|
|||||||
examples:
|
examples:
|
||||||
- program: 'test("foo")'
|
- program: 'test("foo")'
|
||||||
input: '"foo"'
|
input: '"foo"'
|
||||||
output: 'true'
|
output: ['true']
|
||||||
- program: 'test("a b c # spaces are ignored"; "ix")'
|
- program: '.[] | test("a b c # spaces are ignored"; "ix")'
|
||||||
input: '"xabcd" "ABC"'
|
input: '["xabcd", "ABC"]'
|
||||||
output: true
|
output: ['true', 'true']
|
||||||
true
|
|
||||||
|
|
||||||
- title: "`match(val)`, `match(regex; flags)`"
|
- title: "`match(val)`, `match(regex; flags)`"
|
||||||
body: |
|
body: |
|
||||||
@@ -1753,7 +1752,7 @@ sections:
|
|||||||
|
|
||||||
- program: '[ match("."; "g")] | length'
|
- program: '[ match("."; "g")] | length'
|
||||||
input: '"abc"'
|
input: '"abc"'
|
||||||
output: 3
|
output: [3]
|
||||||
|
|
||||||
|
|
||||||
- title: "`capture(val)`, `capture(regex; flags)`"
|
- title: "`capture(val)`, `capture(regex; flags)`"
|
||||||
@@ -1802,7 +1801,7 @@ sections:
|
|||||||
output: ['"ab","cd","ef"']
|
output: ['"ab","cd","ef"']
|
||||||
|
|
||||||
|
|
||||||
- title: "`splits(regex)`, splits(regex; flags)`"
|
- title: "`splits(regex)`, `splits(regex; flags)`"
|
||||||
body: |
|
body: |
|
||||||
|
|
||||||
These provide the same results as their `split` counterparts,
|
These provide the same results as their `split` counterparts,
|
||||||
|
|||||||
Reference in new issue
Block a user