MCPcopy Create free account
hub / github.com/colbymchenry/codegraph / skipSingleLineString

Function skipSingleLineString

src/installer/targets/toml.ts:593–602  ·  view source on GitHub ↗
(line: string, start: number, quote: '"' | "'")

Source from the content-addressed store, hash-verified

591}
592
593function skipSingleLineString(line: string, start: number, quote: '"' | "'"): number {
594 for (let i = start + 1; i < line.length; i++) {
595 if (quote === '"' && line[i] === '\\') {
596 i++;
597 continue;
598 }
599 if (line[i] === quote) return i + 1;
600 }
601 return line.length;
602}

Callers 1

scanTomlLineFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected