artyom.js
artyom.js copied to clipboard
Problem with smart commands with wildcard in the end
var command = {
indexes:["Hello *"],
smart:true,
action: function(i,wildcard){
// if you decide to say Hello good morning dear imaginary person this is a long text
// the wildcard should be : good morning dear imaginary person this is a long text
console.log(wildcard); // isntead the recognized wildcard is good morning and the commands stops.
}
};
artyom.addCommands(command);`
Refine the mode in which the smart commands are being processed.