MCPcopy Index your code
hub / github.com/ByBrawe/opencode-loop / stripOuterQuotes

Function stripOuterQuotes

src/index.js:101–107  ·  view source on GitHub ↗
(value)

Source from the content-addressed store, hash-verified

99}
100
101function splitFirst(input) {
102 const match = String(input || "").trim().match(/^(\S+)\s*([\s\S]*)$/)
103 if (!match) return ["", ""]
104 return [match[1], (match[2] || "").trim()]
105}
106
107function stripOuterQuotes(value) {
108 const input = String(value || "").trim()
109 if ((input.startsWith('"') && input.endsWith('"')) || (input.startsWith("'") && input.endsWith("'"))) {
110 return input.slice(1, -1)

Callers 1

parseLoopArgsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected