MCPcopy Create free account
hub / github.com/cortex-js/compute-engine / skipEmptyLines

Method skipEmptyLines

src/common/markdown-block.ts:254–263  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

252 }
253
254 skipEmptyLines() {
255 while (!this.atEnd()) {
256 const line = this.peekLine();
257 if (line.trim() === '') {
258 this.consumeLine();
259 } else {
260 break;
261 }
262 }
263 }
264
265 readUntil(char: string): string {
266 let result = '';

Callers 1

parseBlocksMethod · 0.95

Calls 3

peekLineMethod · 0.95
consumeLineMethod · 0.95
atEndMethod · 0.45

Tested by

no test coverage detected