MCPcopy Create free account
hub / github.com/danvk/webdiff / exec

Method exec

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

Source from the content-addressed store, hash-verified

131this.matchAt+=S(e)+1}compile(){0===this.regexes.length&&(this.exec=()=>null)
132;const e=this.regexes.map((e=>e[1]));this.matcherRe=t(b(e,{joinWith:"|"
133}),!0),this.lastIndex=0}exec(e){this.matcherRe.lastIndex=this.lastIndex
134;const t=this.matcherRe.exec(e);if(!t)return null
135;const a=t.findIndex(((e,t)=>t>0&&void 0!==e)),n=this.matchIndexes[a]
136;return t.splice(0,a),Object.assign(t,n)}}class n{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 t=new a

Callers 15

SFunction · 0.45
bFunction · 0.45
execMethod · 0.45
_Function · 0.45
uFunction · 0.45
TFunction · 0.45
CFunction · 0.45
tFunction · 0.45
iFunction · 0.45
oFunction · 0.45
lFunction · 0.45
AFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected