mirror of
https://github.com/JanDeDobbeleer/oh-my-posh.git
synced 2024-12-28 20:39:40 -08:00
parent
f1e699f5b3
commit
f2d926b78c
|
@ -143,5 +143,6 @@ func (t *Text) cleanTemplate() {
|
|||
}
|
||||
}
|
||||
|
||||
t.Template = result
|
||||
// return the result and remaining unresolved property
|
||||
t.Template = result + property
|
||||
}
|
||||
|
|
|
@ -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 ",
|
||||
|
|
Loading…
Reference in a new issue