mirror of
https://github.com/JanDeDobbeleer/oh-my-posh.git
synced 2025-01-03 15:27:26 -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
|
ShouldError bool
|
||||||
Context interface{}
|
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",
|
Case: "tillig's regex",
|
||||||
Expected: " ⎈ hello :: world ",
|
Expected: " ⎈ hello :: world ",
|
||||||
|
|
Loading…
Reference in a new issue