MCPcopy
hub / github.com/unclecode/crawl4ai / exec

Method exec

docs/md_v2/assets/highlight.min.js:143–149  ·  view source on GitHub ↗
(e)

Source from the content-addressed store, hash-verified

141 n.compile(),this.multiRegexes[e]=n,n}resumingScanAtSamePosition(){
142 return 0!==this.regexIndex}considerAll(){this.regexIndex=0}addRule(e,n){
143 this.rules.push([e,n]),"begin"===n.type&&this.count++}exec(e){
144 const n=this.getMatcher(this.regexIndex);n.lastIndex=this.lastIndex
145 ;let t=n.exec(e)
146 ;if(this.resumingScanAtSamePosition())if(t&&t.index===this.lastIndex);else{
147 const n=this.getMatcher(0);n.lastIndex=this.lastIndex+1,t=n.exec(e)}
148 return t&&(this.regexIndex+=t.position+1,
149 this.regexIndex===this.count&&this.considerAll()),t}}
150 if(e.compilerExtensions||(e.compilerExtensions=[]),
151 e.contains&&e.contains.includes("self"))throw Error("ERR: contains `self` is not supported at the top-level of a language. See documentation.")
152 ;return e.classNameAliases=a(e.classNameAliases||{}),function t(r,s){const o=r

Callers

nothing calls this directly

Calls 4

getMatcherMethod · 0.95
considerAllMethod · 0.95
execMethod · 0.45

Tested by

no test coverage detected