diff options
author | pkoppstein <pkoppstein@gmail.com> | 2023-07-03 18:46:29 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-07-04 07:46:29 +0900 |
commit | 83f375cc831039396167d4d2b5f901f4b33a8707 (patch) | |
tree | 1ec0e167f315971aefeceed86b1d3d283a3528e3 /tests/jq.test | |
parent | edb0d88e3bb563bbc671c87d139d3c051987e77c (diff) |
Revamp sub/3 to resolve most issues with gsub (and sub with "g") (#2641)
The primary purpose of this commit is to rectify most problems with
`gsub` (and also `sub` with the `g` option), in particular fix #1425 ('\b'),
fix #2354 (lookahead), and fix #2532 (regex == `"^(?!cd ).*$|^cd "`).
This commit also partly resolves #2148 and resolves #1206 in that
`gsub` no longer loops infinitely; however, because the new `gsub`
depends critically on `match/2`, the behavior when regex == `""` is
sometimes non-standard.
The documentation has been updated to reflect the fact that `sub`
and `gsub` are intended to be regular in the second argument.
Also, `_nwise/1` has been tweaked to take advantage of TCO.
Diffstat (limited to 'tests/jq.test')
-rw-r--r-- | tests/jq.test | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/jq.test b/tests/jq.test index ca8e2705..78c4017b 100644 --- a/tests/jq.test +++ b/tests/jq.test @@ -1731,3 +1731,4 @@ false . |= try . catch . 1 1 + |