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

Method _getParserFromRegexTests

external/.scrollLibs.js:15203–15209  ·  view source on GitHub ↗
(block)

Source from the content-addressed store, hash-verified

15201 return contextParticle.constructor
15202 }
15203 _getParserFromRegexTests(block) {
15204 if (!this._regexTests) return undefined
15205 const line = block.split(/\n/)[0]
15206 const hit = this._regexTests.find(test => test.regex.test(line))
15207 if (hit) return hit.parser
15208 return undefined
15209 }
15210 _getCue(block, atomBreakSymbol) {
15211 const line = block.split(/\n/)[0]
15212 const firstBreak = line.indexOf(atomBreakSymbol)

Callers 1

_getMatchingParserMethod · 0.95

Calls 2

splitMethod · 0.80
findMethod · 0.45

Tested by

no test coverage detected