"Right" Lava Filter throws error if string is shorter than requested length #2902
Closed
1 task done
Labels
Priority: High
Affects most production Rock installs in a way that will be noticed.
Status: Confirmed
It's clear what the subject of the issue is about, and what the resolution should be.
Topic: Lava
Related to the Lava templating language.
Type: Bug
Confirmed bugs or reports that are very likely to be bugs.
x-Fixed in v7.4
Milestone
Prerequisites
Description
On v8.0 at least, possibly 7.x, if you do use the
Right
lava filter and requestn
characters, wheren
islessmore than the total length of the string, then an exception is thrown. This does not seem to affect theLeft
filter.Steps to Reproduce
{{ '123' | Right:4 }}
Expected behavior:
I should get the original string back.
Actual behavior:
I get an exception.
Versions
The text was updated successfully, but these errors were encountered: