fix spaces in strings
This commit is contained in:
1 parent
8e205bb9fd
commit
c9751c9d51
3 files changed
+3
-2
No files matched your search
@@ -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]
|
||||
|
||||
Reference in new issue
Block a user