MCPcopy Create free account
hub / github.com/Effect-TS/effect / readUntil

Method readUntil

packages/effect/src/unstable/encoding/Yaml.ts:298–302  ·  view source on GitHub ↗
(stop: RegExp)

Source from the content-addressed store, hash-verified

296 }
297
298 private readUntil(stop: RegExp): string {
299 const start = this.index
300 while (this.index < this.input.length && !stop.test(this.peek())) this.index++
301 return this.input.slice(start, this.index)
302 }
303
304 private skipWhitespace(): void {
305 while (/\s/.test(this.peek())) this.index++

Callers 2

parseValueMethod · 0.95
parseKeyMethod · 0.95

Calls 1

peekMethod · 0.95

Tested by

no test coverage detected