Files
book-test/node_modules/concurrently/dist/bin/normalize-cli-command.js
T
chris a7524412f0
CI/CD Pipeline / test (push) Failing after 2m38s
CI/CD Pipeline / deploy-internal (push) Has been skipped
Add web front-end and fix API issues
2026-08-28 21:47:05 -04:00

16 lines
385 B
JavaScript

export function normalizeCliCommand(command) {
if (command.length < 2) {
return command;
}
const quote = command[0];
const last = command.at(-1);
if ((quote !== '"' && quote !== "'") || last !== quote) {
return command;
}
const inner = command.slice(1, -1);
if (inner.includes(quote)) {
return command;
}
return inner;
}