You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Related to issue flosch#263, I ended up using a custom filter in my own template that just adds an extra branch in filterSlice to calculate & check the negative to bound
* Adds support for negative to bound in slice filter
Related to issue #263, I ended up using a custom filter in my own template that just adds an extra branch in filterSlice to calculate & check the negative to bound
* Slightly more readable version of the bounds check (hopefully)
* Adds tests, better handling of negative bounds for the slice filter
* Handle whitespace in slice end boundary
e.g. the expected output of
{{ "mystring1" | slice:":-1"}}
would bemystring
, but instead it's justmystring1
The text was updated successfully, but these errors were encountered: