config: test bad regexp for replace

This commit is contained in:
Mitchell Hashimoto 2015-03-02 09:44:45 -08:00
parent 68e4d346be
commit 5895494897
1 changed files with 7 additions and 0 deletions

View File

@ -136,6 +136,13 @@ func TestInterpolateFuncReplace(t *testing.T) {
"hello",
false,
},
// Bad regexp
{
`${replace("helo", "/(l/", "$1$1")}`,
nil,
true,
},
},
})
}