diff options
-rw-r--r-- | manager.go | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -84,13 +84,13 @@ func (f *StringFilter) Filter(w *Work) *Work { } changed := false - for k, v := range jm { - ff, ok := f.FilterFuncMap[k] + for field, ff := range f.FilterFuncMap { + str, ok := jm[field] if !ok { continue } - jm[k] = ff(v) + jm[field] = ff(str) changed = true } if changed { |