fix spaces in strings

This commit is contained in:
d1slike committed 2019-07-24 20:53:56 +03:00
1 parent 8e205bb9fd
commit c9751c9d51
3 files changed
+3 -2

No files matched your search

+1 -1
View File
@@ -1 +1 @@
1.0.0
1.0.1
+2
View File
@@ -0,0 +1,2 @@
## v1.0.1
* fix spaces in strings
-1
View File
@@ -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]