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

Function skipSingleLineString

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

Source from the content-addressed store, hash-verified

243}
244
245function skipSingleLineString(line: string, start: number, quote: '"' | "'"): number {
246 for (let i = start + 1; i < line.length; i++) {
247 if (quote === '"' && line[i] === '\\') {
248 i++;
249 continue;
250 }
251 if (line[i] === quote) return i + 1;
252 }
253 return line.length;
254}

Callers 1

scanTomlLineFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected