Skip to content

Commit 2102cb7

Browse files
authored
Update regex.go
1 parent 0f4321d commit 2102cb7

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

internals/template/funcs/regex.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ var regexFindGroupsFunc = TemplateFunc{
4747

4848
var regexReplaceFunc = TemplateFunc{
4949
Name: "regexReplace",
50-
Handler: func(context context.TemplateContext, regex string, str string, replaceWith string) string {
50+
Handler: func(context context.TemplateContext, str string, regex string, replaceWith string) string {
5151
re, err := regexp.Compile(regex)
5252

5353
if err != nil {
@@ -63,4 +63,4 @@ func init() {
6363
Register(regexFindFunc)
6464
Register(regexFindGroupsFunc)
6565
Register(regexReplaceFunc)
66-
}
66+
}

0 commit comments

Comments
 (0)