MCPcopy Create free account
hub / github.com/idank/explainshell / constructor

Method constructor

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

Source from the content-addressed store, hash-verified

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
140 ;return this.rules.slice(e).forEach((([e,n])=>t.addRule(e,n))),
141 t.compile(),this.multiRegexes[e]=t,t}resumingScanAtSamePosition(){

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected