fix(templates): append remaining property on return

resolves #3085
This commit is contained in:
Jan De Dobbeleer 2022-11-16 06:50:41 +01:00 committed by Jan De Dobbeleer
parent f1e699f5b3
commit f2d926b78c
2 changed files with 7 additions and 1 deletions

View file

@ -143,5 +143,6 @@ func (t *Text) cleanTemplate() {
}
}
t.Template = result
// return the result and remaining unresolved property
t.Template = result + property
}

View file

@ -20,6 +20,11 @@ func TestRenderTemplate(t *testing.T) {
ShouldError bool
Context interface{}
}{
{
Case: "color override with dots",
Expected: "😺💬<#FF8000> Meow! What should I do next? ...</>",
Template: "😺💬<#FF8000> Meow! What should I do next? ...</>",
},
{
Case: "tillig's regex",
Expected: " ⎈ hello :: world ",