1
0
mirror of https://github.com/go-task/task.git synced 2025-11-23 22:24:45 +02:00

docs: corrected substr templating example (#2519)

This commit is contained in:
Daniel Thorngren
2025-11-18 13:03:48 -05:00
committed by GitHub
parent a927ffb31e
commit 0d9e8dd71b

View File

@@ -434,7 +434,7 @@ tasks:
- echo "{{.MESSAGE | lower}}" # "hello world"
- echo "{{.NAME | trunc 4}}" # "john"
- echo "{{"test" | repeat 3}}" # "testtesttest"
- echo "{{substr .TEXT 0 5}}" # "Hello"
- echo "{{.TEXT | substr 0 5}}" # "Hello"
```
#### String Testing and Searching