Skip to content

Commit 7c1f40d

Browse files
committed
Have web tool send quoted commands to server
1 parent c136464 commit 7c1f40d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

javascripts/demo.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -989,7 +989,7 @@ function demo() {
989989
var getKernel = function() {
990990
model.setOutput("", "", "", "");
991991

992-
var command = model.input.expression.replace(/ /g, "");
992+
var command = "\"" + model.input.expression.replace(/ /g, "") + "\"";
993993

994994
var formats = "";
995995
for (t in model.input.tensorOrders) {
@@ -1022,7 +1022,7 @@ function demo() {
10221022
var scheduleCommand = model.schedule[i]["command"];
10231023
if (!scheduleCommand) { continue; }
10241024

1025-
command += " -s=" + scheduleCommand + "(";
1025+
command += " -s=\"" + scheduleCommand + "(";
10261026
schedule += ((schedule === "") ? "" : ";") + scheduleCommand + ":";
10271027

10281028
for (var param of model.schedule[i]["parameters"]) {
@@ -1038,7 +1038,7 @@ function demo() {
10381038
}
10391039

10401040
command = command.substring(0, command.length - 1);
1041-
command += ")";
1041+
command += ")\"";
10421042
schedule = schedule.substring(0, schedule.length - 1);
10431043
}
10441044

0 commit comments

Comments
 (0)