MCPcopy Create free account
hub / github.com/Noumena-Network/code / stripQuotes

Function stripQuotes

src/utils/bash/parser.ts:242–248  ·  view source on GitHub ↗
(text: string)

Source from the content-addressed store, hash-verified

240}
241
242function stripQuotes(text: string): string {
243 return text.length >= 2 &&
244 ((text[0] === '"' && text.at(-1) === '"') ||
245 (text[0] === "'" && text.at(-1) === "'"))
246 ? text.slice(1, -1)
247 : text
248}

Callers 1

extractCommandArgumentsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected