From 76dcc178ba1bdd473d6c3c8eb59154d1138a05c6 Mon Sep 17 00:00:00 2001 From: Trial97 Date: Thu, 27 Sep 2018 15:59:10 +0300 Subject: [PATCH] Allow in console to put space insides {} --- console/command_executer.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/console/command_executer.go b/console/command_executer.go index f745d5ff1..7d284af83 100644 --- a/console/command_executer.go +++ b/console/command_executer.go @@ -31,7 +31,7 @@ import ( ) var ( - lineR = regexp.MustCompile(`(\w+)\s*=\s*(\[.+?\]|\".+?\"|.+?)(?:\s+|$)`) + lineR = regexp.MustCompile(`(\w+)\s*=\s*(\[.+?\]|\".+?\"|\{.+?\}|.+?)(?:\s+|$)`) jsonR = regexp.MustCompile(`"(\w+)":(\[.+?\]|.+?)[,|}]`) )