MCPcopy Create free account
hub / github.com/Script-Hub-Org/Script-Hub / splitFirstTopLevel

Function splitFirstTopLevel

Rewrite-Parser.beta.js:2082–2085  ·  view source on GitHub ↗
(str, sep)

Source from the content-addressed store, hash-verified

2080}
2081
2082function splitFirstTopLevel(str, sep) {
2083 const parts = splitTopLevel(str, sep)
2084 return [parts[0] || '', parts.slice(1).join(sep).trim()]
2085}
2086
2087function quoteIfNeeded(str) {
2088 str = `${str ?? ''}`.trim()

Callers 2

formatLoonJsonArgumentFunction · 0.85
parseArgumentsFunction · 0.85

Calls 1

splitTopLevelFunction · 0.85

Tested by

no test coverage detected