MCPcopy Index your code
hub / github.com/Hashnode/starter-kit / exec

Method exec

packages/utils/renderer/highlight.js:607–617  ·  view source on GitHub ↗
(e)

Source from the content-addressed store, hash-verified

605 this.rules.push([e, n]), 'begin' === n.type && this.count++;
606 }
607 exec(e) {
608 const n = this.getMatcher(this.regexIndex);
609 n.lastIndex = this.lastIndex;
610 const t = n.exec(e);
611 return (
612 t &&
613 ((this.regexIndex += t.position + 1),
614 this.regexIndex === this.count && (this.regexIndex = 0)),
615 t
616 );
617 }
618 }
619 function i(e, n) {
620 const t = e.input[e.index - 1],

Callers

nothing calls this directly

Calls 2

getMatcherMethod · 0.95
execMethod · 0.45

Tested by

no test coverage detected