From 5895494897c208a0dc1ac5feef179776fd3ac9bb Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Mon, 2 Mar 2015 09:44:45 -0800 Subject: [PATCH] config: test bad regexp for replace --- config/interpolate_funcs_test.go | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/config/interpolate_funcs_test.go b/config/interpolate_funcs_test.go index 978c96285..73a793c0f 100644 --- a/config/interpolate_funcs_test.go +++ b/config/interpolate_funcs_test.go @@ -136,6 +136,13 @@ func TestInterpolateFuncReplace(t *testing.T) { "hello", false, }, + + // Bad regexp + { + `${replace("helo", "/(l/", "$1$1")}`, + nil, + true, + }, }, }) }