summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvan Jegen <s.jegen@gmail.com>2017-02-19 21:05:12 +0100
committerSilvan Jegen <s.jegen@gmail.com>2017-02-19 21:05:12 +0100
commitcee74e4f30277d737ac6a54f016e15f1e831212a (patch)
tree478691babc18b7f6818ca84c378155f73f7d27a2
parent79c3ef8d5eb79d13bd2c72c7b3cc21526770ffd6 (diff)
Clean the strings used by the string filter
-rw-r--r--filter/str/string.go2
1 files changed, 2 insertions, 0 deletions
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, "/")...)
}