MCPcopy Create free account
hub / github.com/Hashnode/starter-kit / addRule

Method addRule

packages/utils/renderer/highlight.js:604–606  ·  view source on GitHub ↗
(e, n)

Source from the content-addressed store, hash-verified

602 this.regexIndex = 0;
603 }
604 addRule(e, n) {
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;

Callers 1

bFunction · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected