Closed scotthovestadt closed 8 years ago
Looks like the issue is the code that actually matches a command:
matchCommand: function (cmd, cmds) {
const parts = String(cmd).trim().split('|')[0].split(' ');
Need to be smarter about not splitting on pipe characters when they are quotes.
Looks like multiple places are naive about pipes. In util.js:
function parsePipes() {
const newPipes = String(command).trim().split('|').map((itm) => String(itm).trim());
command = newPipes.shift();
pipes = pipes.concat(newPipes);
}
Failing test: