hugo/tpl/strings
Cameron Moore 8a26ab0bc5 tpl: Do not return errors in substr for out-of-bounds cases
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
2021-01-08 10:13:10 +01:00
..
init.go
init_test.go
regexp.go
regexp_test.go
strings.go tpl: Do not return errors in substr for out-of-bounds cases 2021-01-08 10:13:10 +01:00
strings_test.go tpl: Do not return errors in substr for out-of-bounds cases 2021-01-08 10:13:10 +01:00
truncate.go all: Format code with gofumpt 2020-12-03 13:12:58 +01:00
truncate_test.go all: Format code with gofumpt 2020-12-03 13:12:58 +01:00