diff --git a/restream/app/process.go b/restream/app/process.go index a84da11c..a726c51f 100644 --- a/restream/app/process.go +++ b/restream/app/process.go @@ -86,9 +86,8 @@ func replace(what, placeholder, value string) string { return what } - innerRe := re.Copy() what = re.ReplaceAllStringFunc(what, func(match string) string { - matches := innerRe.FindStringSubmatch(match) + matches := re.FindStringSubmatch(match) var v string if matches[2] != "" {