Fix sliceStringNode signature and fix test descriptions/expressions

Agent-Logs-Url: https://github.com/mikefarah/yq/sessions/58726b13-68ae-4f93-971f-eb70459edcf4

Co-authored-by: mikefarah <1151925+mikefarah@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot]
2026-03-28 02:01:01 +00:00
committed by GitHub
co-authored by mikefarah
parent 6d345ac795
commit 9a9399ad00
4 changed files with 12 additions and 15 deletions
+4 -4
View File
@@ -110,11 +110,11 @@ country: Australia
```
then
```bash
yq '.country[4:]' sample.yml
yq '.country[0:5]' sample.yml
```
will output
```yaml
ralia
Austr
```
## Slicing strings - without the second number
@@ -126,11 +126,11 @@ country: Australia
```
then
```bash
yq '.country[0:5]' sample.yml
yq '.country[5:]' sample.yml
```
will output
```yaml
Austr
alia
```
## Slicing strings - without the first number