From fabb2cf09c069102844b9a76755c2bb662713edb Mon Sep 17 00:00:00 2001 From: Silver Kuusik Date: Fri, 5 Jan 2018 14:15:09 +0100 Subject: [PATCH] fix python code upload --- sumorobot.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sumorobot.js b/sumorobot.js index b849d95..46a6446 100755 --- a/sumorobot.js +++ b/sumorobot.js @@ -409,7 +409,7 @@ window.onload = function() { $(".btn-start").click(function() { sumostart = true; if (pythonEnabled) { - sumorobot.send("start:" + $("#blocklyCode").val().replace(/sumorobot./g, "")); + sumorobot.send("start:" + $("#blocklyCode").val().replace(/sumorobot./g, "").replace(/\)/g, ", \"\")")); } else { sumorobot.send("start:" + sumocode.replace(/sumorobot./g, "")); }