Skip to content

Commit 44e89a2

Browse files
committed
debugging error
1 parent 5972c44 commit 44e89a2

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

internals/proxy/proxy.go

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,12 @@ func templateJSON(data map[string]interface{}, variables map[string]interface{})
8787
str, ok := v.(string)
8888

8989
if ok {
90-
re := regexp.MustCompile(`{{\s*\.([A-Za-z_][A-Za-z0-9_]*)}}\s*`)
90+
re, err := regexp.Compile(`{{\s*\.([A-Za-z_][A-Za-z0-9_]*)}}\s*`)
91+
92+
if err != nil {
93+
log.Error("Encountered Error while Compiling Regex: ", err.Error())
94+
}
95+
9196
matches := re.FindAllString(str, -1)
9297

9398
if len(matches) > 1 {

0 commit comments

Comments
 (0)