From 8504a61225fd6d9bf326e0ef11389abda7683738 Mon Sep 17 00:00:00 2001 From: Aditya Kulkarni Date: Tue, 29 Oct 2019 14:44:59 -0700 Subject: [PATCH] Allow escaped chars --- lib/src/commands.rs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/lib/src/commands.rs b/lib/src/commands.rs index da91bde..46f2635 100644 --- a/lib/src/commands.rs +++ b/lib/src/commands.rs @@ -440,9 +440,7 @@ impl Command for SendCommand { // Check for a single argument that can be parsed as JSON let send_args = if args.len() == 1 { - // Sometimes on the command line, people use "'" for the quotes, which json::parse doesn't - // understand. So replace it with double-quotes - let arg_list = args[0].replace("'", "\""); + let arg_list = args[0]; let json_args = match json::parse(&arg_list) { Ok(j) => j,