MCPcopy Create free account
hub / github.com/UsefulSoftwareCo/executor / skipSpace

Function skipSpace

packages/hosts/mcp/src/create-artifact.ts:133–135  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

131const loopBody = (code: string, keyword: string, afterKeyword: number): string | null => {
132 let index = afterKeyword;
133 const skipSpace = (): void => {
134 while (index < code.length && /\s/.test(code[index] ?? "")) index += 1;
135 };
136
137 // `for (...)` / `while (...)`: step over the header's parens first. A hook in
138 // the header itself is not the shape we're after.

Callers 1

loopBodyFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected