fix: fix ReplacePlaceholderString

This commit is contained in:
Ryooooooga 2023-01-18 20:56:22 +09:00
parent 48df9b7f4e
commit 7149cfeb11
No known key found for this signature in database
GPG key ID: 07CF200DFCC20C25
2 changed files with 13 additions and 3 deletions

View file

@ -53,6 +53,13 @@ func TestResolvePlaceholderString(t *testing.T) {
},
"{{}} {{ this }} { should not throw}} an {{{{}}}} error",
},
{
"{{a}}",
map[string]string{
"a": "X{{.a}}X",
},
"X{{.a}}X",
},
}
for _, s := range scenarios {