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

Method exec

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

Source from the content-addressed store, hash-verified

107t.compile(),this.multiRegexes[e]=t,t}resumingScanAtSamePosition(){
108return 0!==this.regexIndex}considerAll(){this.regexIndex=0}addRule(e,t){
109this.rules.push([e,t]),"begin"===t.type&&this.count++}exec(e){
110const t=this.getMatcher(this.regexIndex);t.lastIndex=this.lastIndex
111;let n=t.exec(e)
112;if(this.resumingScanAtSamePosition())if(n&&n.index===this.lastIndex);else{
113const t=this.getMatcher(0);t.lastIndex=this.lastIndex+1,n=t.exec(e)}
114return n&&(this.regexIndex+=n.position+1,
115this.regexIndex===this.count&&this.considerAll()),n}}
116if(e.compilerExtensions||(e.compilerExtensions=[]),
117e.contains&&e.contains.includes("self"))throw Error("ERR: contains `self` is not supported at the top-level of a language. See documentation.")
118;return e.classNameAliases=a(e.classNameAliases||{}),function t(s,i){const o=s

Callers

nothing calls this directly

Calls 4

getMatcherMethod · 0.95
considerAllMethod · 0.95
execMethod · 0.45

Tested by

no test coverage detected