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

How to regex replace strings? #14

Closed
faustbrian opened this issue Sep 9, 2021 · 2 comments
Closed

How to regex replace strings? #14

faustbrian opened this issue Sep 9, 2021 · 2 comments
Assignees
Labels
feature/request New feature or request

Comments

@faustbrian
Copy link

Hey, great project but was wondering if it is possible to perform regex replacements in values like commit messages.

Something like {{ commit.message | replace(from="#(\d+)", to="") }} to turn Update dependencies (#57) into Update dependencies

@faustbrian faustbrian added the feature/request New feature or request label Sep 9, 2021
@orhun
Copy link
Owner

orhun commented Sep 9, 2021

Tera already has a built-in filter called replace but it doesn't support regex. There's already a tracking issue: Keats/tera#421

@orhun
Copy link
Owner

orhun commented Oct 1, 2021

Closing due to being Tera related.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature/request New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants