artyom.js icon indicating copy to clipboard operation
artyom.js copied to clipboard

Problem with smart commands with wildcard in the end

Open sdkcarlos opened this issue 9 years ago • 0 comments

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.

sdkcarlos avatar Mar 13 '16 16:03 sdkcarlos