ends_with
Returns true if the string ends with a specific value, false otherwise.
Sample Usage
---
title: The Forest
---
{{ title|ends_with:forest }}
This will return true
.
Note: the v1 modifier parser does not accept whitespace.
Parameters
You can pass a true/false flag to enable case sensitivity. By default it is case-insensitive.
---
title: The Forest
---
{{ title|ends_with:forest:true }}
This will return false
because “forest” does not match “Forest” when case-sensitive.