MCPcopy Create free account
hub / github.com/breck7/scroll / _getCue

Method _getCue

external/.scrollLibs.js:15210–15214  ·  view source on GitHub ↗
(block, atomBreakSymbol)

Source from the content-addressed store, hash-verified

15208 return undefined
15209 }
15210 _getCue(block, atomBreakSymbol) {
15211 const line = block.split(/\n/)[0]
15212 const firstBreak = line.indexOf(atomBreakSymbol)
15213 return line.substr(0, firstBreak > -1 ? firstBreak : undefined)
15214 }
15215 async appendParticleAsync(parentParticle, block) {
15216 const index = parentParticle.length
15217 const parser = this._getMatchingParser(block, parentParticle, index)

Callers 1

_getMatchingParserMethod · 0.95

Calls 2

splitMethod · 0.80
indexOfMethod · 0.80

Tested by

no test coverage detected