MCPcopy Create free account
hub / github.com/aboutcode-org/vulnerablecode / exec

Method exec

vulnerablecode/static/js/highlight-10.6.0.min.js:98–102  ·  view source on GitHub ↗
(e)

Source from the content-addressed store, hash-verified

96r+=o.substring(0,e.index),
97o=o.substring(e.index+e[0].length),"\\"===e[0][0]&&e[1]?r+="\\"+(Number(e[1])+i):(r+=e[0],
98"("===e[0]&&s++)}r+=")"}return r})(e),!0),this.lastIndex=0}exec(e){
99this.matcherRe.lastIndex=this.lastIndex;const t=this.matcherRe.exec(e)
100;if(!t)return null
101;const n=t.findIndex(((e,t)=>t>0&&void 0!==e)),s=this.matchIndexes[n]
102;return t.splice(0,n),Object.assign(t,s)}}class r{constructor(){
103this.rules=[],this.multiRegexes=[],
104this.count=0,this.lastIndex=0,this.regexIndex=0}getMatcher(e){
105if(this.multiRegexes[e])return this.multiRegexes[e];const t=new s

Callers 7

addRuleMethod · 0.45
compileMethod · 0.45
execMethod · 0.45
dFunction · 0.45
mFunction · 0.45
fFunction · 0.45
EFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected