MCPcopy Create free account
hub / github.com/dataease/SQLBot / getMatcher

Method getMatcher

frontend/public/swagger-ui-bundle.js:20605–20614  ·  view source on GitHub ↗
(s)

Source from the content-addressed store, hash-verified

20603 (this.regexIndex = 0))
20604 }
20605 getMatcher(s) {
20606 if (this.multiRegexes[s]) return this.multiRegexes[s]
20607 const o = new MultiRegex()
20608 return (
20609 this.rules.slice(s).forEach(([s, i]) => o.addRule(s, i)),
20610 o.compile(),
20611 (this.multiRegexes[s] = o),
20612 o
20613 )
20614 }
20615 resumingScanAtSamePosition() {
20616 return 0 !== this.regexIndex
20617 }

Callers 1

execMethod · 0.95

Calls 3

addRuleMethod · 0.95
compileMethod · 0.95
forEachMethod · 0.45

Tested by

no test coverage detected