concurrently-with-grid
Version:
Run commands concurrently
13 lines (10 loc) • 366 B
JavaScript
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 });
}
};