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

Function escapeRegExp

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

Source from the content-addressed store, hash-verified

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)
111 }
112 return input
113}
114

Callers 2

takeFlagFunction · 0.85
takeFlagValueFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected