MCPcopy
hub / github.com/composerize/composerize / stripQuotes

Function stripQuotes

packages/composerize/src/logic.js:32–35  ·  view source on GitHub ↗
(val: string)

Source from the content-addressed store, hash-verified

30};
31
32export const stripQuotes = (val: string): string =>
33 typeof val === 'string' && (val[0] === "'" || val[0] === '"') && val[val.length - 1] === val[0]
34 ? val.substring(1, val.length - 1)
35 : val;
36
37/**
38 * Turn a mapping and the value of the mapping into a formatted json object

Callers 3

cleanStringArgFunction · 0.90
getComposeFileJsonFunction · 0.90
getComposeEntryFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…