trim-suffix
TrimSuffix removes a trailing suffix string or trailing whitespace from the value.
TrimSuffix removes a trailing suffix string or trailing whitespace from the value.
Input
string bytes
Parameters
| # | Type | Required |
|---|---|---|
| 0 | string | no |
Returns
string, bytes
Examples
{{ path | trim-suffix:'/' }}
{{ text | trim-suffix }}How is this guide?