Skip to content

Commit

Permalink
fix(recipes): improved regex for template comments (resolved #58)
Browse files Browse the repository at this point in the history
aimok04 committed Jan 11, 2025

Verified

This commit was signed with the committer’s verified signature.
hediet Henning Dieterichs
1 parent d43a69a commit 58f8f45
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -155,7 +155,10 @@ class TandoorStep(
} else {
(number * scale).formatAmount(fractional)
}
}.replace(Regex("\\{#[\\w\\s]*#\\}"), "") // replaces template comments
}.replace(
Regex("\\{#[\\w\\s.,;:\\-()\\/%°\"„“'’&\\\$€?!*+…]*#\\}"),
""
) // replaces template comments
}

return value

0 comments on commit 58f8f45

Please sign in to comment.