Entering invalid text causes an error
Closed this issue · 1 comments
khodges42 commented
Echoing something like cat about
will cause a str not found
error.
My cheap fix was just to add a default to text, but there's probably a better way.
Terminal.prototype.type = function (text = "I can't let you do that, Tom.", callback) { this.typeSimulator.type(text, callback); };
luisbraganca commented
Sorry for the waiting. I managed to fix it, I did some mistake on the if/else block.
Thank you for your observation.