diff options
Diffstat (limited to 'docs/content/manual/v1.6/manual.yml')
-rw-r--r-- | docs/content/manual/v1.6/manual.yml | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/docs/content/manual/v1.6/manual.yml b/docs/content/manual/v1.6/manual.yml index 09ced514..ba5c0c66 100644 --- a/docs/content/manual/v1.6/manual.yml +++ b/docs/content/manual/v1.6/manual.yml @@ -2200,10 +2200,12 @@ sections: The `?` operator, used as `EXP?`, is shorthand for `try EXP`. examples: - - program: '[.[]|(.a)?]' + - program: '[.[] | .a?]' input: '[{}, true, {"a":1}]' output: ['[null, 1]'] - + - program: '[.[] | tonumber?]' + input: '["1", "invalid", "3", 4]' + output: ['[1, 3, 4]'] - title: Regular expressions body: | |