diff options
author | Matthew Holt <mholt@users.noreply.github.com> | 2019-05-16 11:46:17 -0600 |
---|---|---|
committer | Matthew Holt <mholt@users.noreply.github.com> | 2019-05-16 11:46:17 -0600 |
commit | ff5b4639d597203f8aec43e5eae8fe3774976d32 (patch) | |
tree | fa7f9d24494f61232c87efd6b68ee7f8909ffb00 /modules/caddyhttp/matchers.go | |
parent | f9d93ead4ef6e099ba7e00318dce6509b0f1eda4 (diff) |
Some minor updates, and get rid of OnLoad/OnUnload
Diffstat (limited to 'modules/caddyhttp/matchers.go')
-rw-r--r-- | modules/caddyhttp/matchers.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/caddyhttp/matchers.go b/modules/caddyhttp/matchers.go index 0179dd7..7df4d8f 100644 --- a/modules/caddyhttp/matchers.go +++ b/modules/caddyhttp/matchers.go @@ -233,14 +233,14 @@ func (mre *matchRegexp) match(input string, repl *Replacer, scope string) bool { // save all capture groups, first by index for i, match := range matches { - key := fmt.Sprintf("http.matchers.%s.%s.%d", scope, mre.Name, i) + key := fmt.Sprintf("matchers.%s.%s.%d", scope, mre.Name, i) repl.Map(key, match) } // then by name for i, name := range mre.compiled.SubexpNames() { if i != 0 && name != "" { - key := fmt.Sprintf("http.matchers.%s.%s.%s", scope, mre.Name, name) + key := fmt.Sprintf("matchers.%s.%s.%s", scope, mre.Name, name) repl.Map(key, matches[i]) } } |