MCPcopy Index your code
hub / github.com/idank/explainshell / exec

Method exec

explainshell/web/static/js/highlight.min.js:133–136  ·  view source on GitHub ↗
(e)

Source from the content-addressed store, hash-verified

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

Callers 15

pFunction · 0.45
mFunction · 0.45
execMethod · 0.45
lFunction · 0.45
fFunction · 0.45
EFunction · 0.45
wFunction · 0.45
d3_rgb_parseFunction · 0.45
d3.v3.jsFile · 0.45
d3_interpolateStringFunction · 0.45
d3_time_parseWeekdayFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected