Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature request: allow strip filter with specified char #390

Closed
lakuapik opened this issue Sep 22, 2021 · 1 comment
Closed

Feature request: allow strip filter with specified char #390

lakuapik opened this issue Sep 22, 2021 · 1 comment

Comments

@lakuapik
Copy link

the current strip, rstrip or lstrip filter does not support specific char to be stripped.

it would be more helpful if we can strip any char we like.

{{ "/hello/world/" | strip: "/" }}
=> hello/world

{{ "/hello/world/" | rstrip: "/" }}
=> /hello/world

{{ "x_x_x_x_" | lstrip: "x" }}
=> _x_x_x_

thank you for your amazing work!

@harttle harttle closed this as completed in c503cb2 Mar 5, 2022
github-actions bot pushed a commit that referenced this issue Mar 5, 2022
# [9.36.0](v9.35.2...v9.36.0) (2022-03-05)

### Features

* Access array item by negative index, closes [#486](#486) ([049685b](049685b))
* allow strip filter with specified char, closes [#390](#390) ([c503cb2](c503cb2))
* appropriate error for malformed filters, fixes [#271](#271) ([01014ed](01014ed))
@github-actions
Copy link

github-actions bot commented Mar 5, 2022

🎉 This issue has been resolved in version 9.36.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants