Ensures that the string ends with a specified string. If it doesn't, it will now.
links: - statamic - wilderborn.com
{{ links }} <li>{{ value | ensure_right('.com') }}</li>{{ /links }}
<li>statamic.com</li><li>wilderborn.com</li>
ensure_right
ModifierEnsures that the string ends with a specified string. If it doesn't, it will now.
links: - statamic - wilderborn.com
{{ links }} <li>{{ value | ensure_right('.com') }}</li>{{ /links }}
<li>statamic.com</li><li>wilderborn.com</li>
Submit improvements, related content, or suggestions through Github.
Betterify this page →