Buckets:

imerfanrajabee's picture
download
raw
555 Bytes
"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;

Xet Storage Details

Size:
555 Bytes
·
Xet hash:
bf5319b3ebbd76595dd66baf80b0b7e31b9c12e1100dd5edceb825074a32a8e1

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.