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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user