From cee74e4f30277d737ac6a54f016e15f1e831212a Mon Sep 17 00:00:00 2001 From: Silvan Jegen Date: Sun, 19 Feb 2017 21:05:12 +0100 Subject: Clean the strings used by the string filter --- filter/str/string.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/filter/str/string.go b/filter/str/string.go index f6087be..a5017b5 100644 --- a/filter/str/string.go +++ b/filter/str/string.go @@ -29,6 +29,8 @@ func New(kv map[string]string) filter.Filter { replmap := make(map[string]Replacer, len(kv)) for field, repl := range kv { + field := strings.Replace(field, "\"", "", -1) + repl := strings.Replace(repl, "\"", "", -1) replmap[field] = strings.NewReplacer(strings.Split(repl, "/")...) } -- cgit v1.2.1-18-gbd029