mirror of
https://github.com/gohugoio/hugo.git
synced 2024-11-14 20:37:55 -05:00
8a26ab0bc5
Most other substr implementations don't error out in out-of-bounds cases but simply return an empty string (or a value that's printed as an empty string). We'll follow their lead and not exit template execution. Allow the user decide what to do with the empty result. Fixes #8113 |
||
---|---|---|
.. | ||
init.go | ||
init_test.go | ||
regexp.go | ||
regexp_test.go | ||
strings.go | ||
strings_test.go | ||
truncate.go | ||
truncate_test.go |