From c9751c9d5107d8da44cda3a16057143b44598ba2 Mon Sep 17 00:00:00 2001 From: d1slike Date: Wed, 24 Jul 2019 20:53:56 +0300 Subject: [PATCH] fix spaces in strings --- .version | 2 +- CHANGELOG.md | 2 ++ command/set.go | 1 - 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.version b/.version index afaf360..7dea76e 100644 --- a/.version +++ b/.version @@ -1 +1 @@ -1.0.0 \ No newline at end of file +1.0.1 diff --git a/CHANGELOG.md b/CHANGELOG.md index e69de29..48328ec 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -0,0 +1,2 @@ +## v1.0.1 +* fix spaces in strings diff --git a/command/set.go b/command/set.go index 41ce464..bb3348e 100644 --- a/command/set.go +++ b/command/set.go @@ -70,7 +70,6 @@ func (s setCommand) action(c *cli.Context) { } func (s setCommand) parseObject(argument string) interface{} { - argument = strings.Replace(argument, " ", "", -1) tryParse := []byte(argument) if tryParse[0] == '"' && tryParse[len(tryParse)-1] == '"' { tryParse = tryParse[1 : len(tryParse)-1]