MCPcopy Index your code
hub / github.com/dataease/SQLBot / compile

Method compile

frontend/public/swagger-ui-bundle.js:20555–20587  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

20553 })(s) + 1))
20554 }
20555 compile() {
20556 0 === this.regexes.length && (this.exec = () => null)
20557 const s = this.regexes.map((s) => s[1])
20558 ;((this.matcherRe = langRe(
20559 (function join(s, o = '|') {
20560 let i = 0
20561 return s
20562 .map((s) => {
20563 i += 1
20564 const o = i
20565 let u = source(s),
20566 _ = ''
20567 for (; u.length > 0; ) {
20568 const s = a.exec(u)
20569 if (!s) {
20570 _ += u
20571 break
20572 }
20573 ;((_ += u.substring(0, s.index)),
20574 (u = u.substring(s.index + s[0].length)),
20575 '\\' === s[0][0] && s[1]
20576 ? (_ += '\\' + String(Number(s[1]) + o))
20577 : ((_ += s[0]), '(' === s[0] && i++))
20578 }
20579 return _
20580 })
20581 .map((s) => `(${s})`)
20582 .join(o)
20583 })(s),
20584 !0
20585 )),
20586 (this.lastIndex = 0))
20587 }
20588 exec(s) {
20589 this.matcherRe.lastIndex = this.lastIndex
20590 const o = this.matcherRe.exec(s)

Callers 3

getMatcherMethod · 0.95
system_schema.pyFile · 0.80
_compile_patternsMethod · 0.80

Calls 4

langReFunction · 0.85
sourceFunction · 0.85
mapMethod · 0.45
execMethod · 0.45

Tested by

no test coverage detected