MCPcopy Create free account
hub / github.com/davidkingzyb/SCAST / exec

Method exec

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

Source from the content-addressed store, hash-verified

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

Callers 15

saveScastFunction · 0.45
_saveServerFunction · 0.45
initFileFunction · 0.45
pFunction · 0.45
hFunction · 0.45
execMethod · 0.45
cFunction · 0.45
mFunction · 0.45
fFunction · 0.45
yFunction · 0.45
acorn.jsFile · 0.45
filbert.jsFile · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected