config: test bad regexp for replace
This commit is contained in:
parent
68e4d346be
commit
5895494897
|
@ -136,6 +136,13 @@ func TestInterpolateFuncReplace(t *testing.T) {
|
|||
"hello",
|
||||
false,
|
||||
},
|
||||
|
||||
// Bad regexp
|
||||
{
|
||||
`${replace("helo", "/(l/", "$1$1")}`,
|
||||
nil,
|
||||
true,
|
||||
},
|
||||
},
|
||||
})
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue