TenantAtlas/apps/platform/.pnpm-store/v10/files/6d/8d1ebb43632757af4d14cd52bf7cf05e5fbf1dfd72f009cc8166d634720828a9b22d5661cfde4b9b4d6b8f9bdd217448da375cdb98febff717b2b085dc2634
Ahmed Darrazi 9f74f7a658
Some checks failed
PR Fast Feedback / fast-feedback (pull_request) Failing after 51s
feat: compress governance operator outcomes
2026-04-19 14:15:11 +02:00

18 lines
555 B
Plaintext

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.StripQuotes = void 0;
/**
* Strips quotes around commands so that they can run on the current shell.
*/
class StripQuotes {
parse(commandInfo) {
let { command } = commandInfo;
// Removes the quotes surrounding a command.
if (/^"(.+?)"$/.test(command) || /^'(.+?)'$/.test(command)) {
command = command.slice(1, command.length - 1);
}
return { ...commandInfo, command };
}
}
exports.StripQuotes = StripQuotes;