diff options
author | Emanuele Torre <torreemanuele6@gmail.com> | 2023-12-09 20:46:38 +0100 |
---|---|---|
committer | Nico Williams <nico@cryptonector.com> | 2024-01-16 16:57:37 -0600 |
commit | 1f1e619f4e1478598aca56115948eb14d484b9fe (patch) | |
tree | 06820f0c606b99a01f6784810c80954d3600cc0f /docs | |
parent | 71e7bcdfc154ddbd27b80c840f35b52cb9d66215 (diff) |
builtins: make ltrimstr and rtrimstr error for non-string inputs
Previously, ltrimstr/rtrimstr would just let the input pass through for
non-string inputs or arguments.
That was happening because, they were leaking the errors returned by
startswith/endswith treating them as if they were jv_false().
The leak was resolved by #2977 for 1.7.1
This patch rewrites ltrimstr and rtrimstr in jq, and makes them not
ignore startswith and endswith errors anymore.
Diffstat (limited to 'docs')
0 files changed, 0 insertions, 0 deletions