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

Method addRule

explainshell/web/static/js/highlight.min.js:142–143  ·  view source on GitHub ↗
(e,t)

Source from the content-addressed store, hash-verified

140 ;return this.rules.slice(e).forEach((([e,n])=>t.addRule(e,n))),
141 t.compile(),this.multiRegexes[e]=t,t}resumingScanAtSamePosition(){
142 return 0!==this.regexIndex}considerAll(){this.regexIndex=0}addRule(e,t){
143 this.rules.push([e,t]),"begin"===t.type&&this.count++}exec(e){
144 const t=this.getMatcher(this.regexIndex);t.lastIndex=this.lastIndex
145 ;let n=t.exec(e)
146 ;if(this.resumingScanAtSamePosition())if(n&&n.index===this.lastIndex);else{

Callers 1

VFunction · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected