From e4fa1e69e7ebfb627c7198fd1a9881e9327ec4d4 Mon Sep 17 00:00:00 2001 From: Pinapelz Date: Sat, 28 Jun 2025 17:26:46 -0700 Subject: initial commit: scaffolding --- .../dist/src/command-parser/strip-quotes.js | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 node_modules/concurrently/dist/src/command-parser/strip-quotes.js (limited to 'node_modules/concurrently/dist/src/command-parser/strip-quotes.js') diff --git a/node_modules/concurrently/dist/src/command-parser/strip-quotes.js b/node_modules/concurrently/dist/src/command-parser/strip-quotes.js new file mode 100644 index 0000000..971a524 --- /dev/null +++ b/node_modules/concurrently/dist/src/command-parser/strip-quotes.js @@ -0,0 +1,17 @@ +"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; -- cgit v1.2.3