MCPcopy Create free account
hub / github.com/bigskysoftware/_hyperscript / findClosingQuote

Function findClosingQuote

src/platform/node-hyperscript.js:216–224  ·  view source on GitHub ↗
(text, start, quote)

Source from the content-addressed store, hash-verified

214}
215
216function findClosingQuote(text, start, quote) {
217 let i = start;
218 while (i < text.length) {
219 if (text[i] === '\\') { i += 2; continue; }
220 if (text[i] === quote) return i;
221 i++;
222 }
223 return start; // unclosed
224}
225
226// ===== Error formatting =====
227

Callers 1

extractRegionsFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected