UNPKG

concurrently-with-grid

Version:
13 lines (10 loc) 366 B
module.exports = class StripQuotes { parse(commandInfo) { let { command } = commandInfo; // Removes the quotes surrounding a command. if (/^"(.+?)"$/.test(command) || /^'(.+?)'$/.test(command)) { command = command.substr(1, command.length - 2); } return Object.assign({}, commandInfo, { command }); } };