diff --git a/sources/scripts/core/commander.js b/sources/scripts/core/commander.js index 2b0a59c..f49ab05 100644 --- a/sources/scripts/core/commander.js +++ b/sources/scripts/core/commander.js @@ -14,7 +14,6 @@ function Commander() this.validate = function(q = ronin.commander.query()) { - console.info(q.string) if(!ronin.modules[q.module]){ console.log("Unknown module",q.module); return; } if(q.raw.indexOf("$") > -1){ console.log("Variables present"); return; } if(q.raw.indexOf(";") > -1){ this.validate_multi(q); return; } diff --git a/sources/scripts/core/query.js b/sources/scripts/core/query.js index 699138e..36d141e 100644 --- a/sources/scripts/core/query.js +++ b/sources/scripts/core/query.js @@ -1,5 +1,8 @@ function Query(query_str = "") { + // Strip trailing variables + query_str = query_str.indexOf("&$+") > -1 ? query_str.replace("&$+","").trim() : query_str + this.string = query_str; this.module = query_str.split(" ")[0]; var parts = query_str.split(" ").splice(1); diff --git a/sources/scripts/modules/path.js b/sources/scripts/modules/path.js index 7b9a7df..01bdfd7 100644 --- a/sources/scripts/modules/path.js +++ b/sources/scripts/modules/path.js @@ -2,7 +2,7 @@ function Path() { Module.call(this,"path","Trace lines and to draw shapes."); - this.settings = {thickness:4,color:"white",cap:"square"}; + this.settings = {thickness:4,color:"red",cap:"square"}; this.methods.stroke = new Method("stroke","x,y&","",function(q){ ronin.preview.clear();