MCPcopy Create free account
hub / github.com/FSoft-AI4Code/HyperAgent / exec

Method exec

hyperagent-ext/media/scripts/highlight.min.js:132–135  ·  view source on GitHub ↗
(e)

Source from the content-addressed store, hash-verified

130 this.matchAt+=_(e)+1}compile(){0===this.regexes.length&&(this.exec=()=>null)
131 ;const e=this.regexes.map((e=>e[1]));this.matcherRe=n(f(e,{joinWith:"|"
132 }),!0),this.lastIndex=0}exec(e){this.matcherRe.lastIndex=this.lastIndex
133 ;const n=this.matcherRe.exec(e);if(!n)return null
134 ;const t=n.findIndex(((e,n)=>n>0&&void 0!==e)),a=this.matchIndexes[t]
135 ;return n.splice(0,t),Object.assign(n,a)}}class a{constructor(){
136 this.rules=[],this.multiRegexes=[],
137 this.count=0,this.lastIndex=0,this.regexIndex=0}getMatcher(e){
138 if(this.multiRegexes[e])return this.multiRegexes[e];const n=new t

Callers 12

_Function · 0.45
fFunction · 0.45
execMethod · 0.45
cFunction · 0.45
mFunction · 0.45
yFunction · 0.45
pFunction · 0.45
wSFunction · 0.45
QrFunction · 0.45
C2Function · 0.45
uFunction · 0.45
marked.min.jsFile · 0.45

Calls 1

assignMethod · 0.80

Tested by

no test coverage detected