remove_last
Removes the last occurrence of a string.
Syntax
Section titled “Syntax”string | remove_last: stringReturns
Section titled “Returns”string
Example
Section titled “Example”{{ 'a-b-c' | remove_last: '-' }}a-bcRelated
Section titled “Related”Compatibility
Section titled “Compatibility”Shopify: Same as Shopify.
Since theme platform 1.0.
Was this page helpful?

