MCPcopy Create free account
hub / github.com/aboutcode-org/vulnerablecode / addRule

Method addRule

vulnerablecode/static/js/highlight-10.6.0.min.js:108–109  ·  view source on GitHub ↗
(e,t)

Source from the content-addressed store, hash-verified

106;return this.rules.slice(e).forEach((([e,n])=>t.addRule(e,n))),
107t.compile(),this.multiRegexes[e]=t,t}resumingScanAtSamePosition(){
108return 0!==this.regexIndex}considerAll(){this.regexIndex=0}addRule(e,t){
109this.rules.push([e,t]),"begin"===t.type&&this.count++}exec(e){
110const t=this.getMatcher(this.regexIndex);t.lastIndex=this.lastIndex
111;let n=t.exec(e)
112;if(this.resumingScanAtSamePosition())if(n&&n.index===this.lastIndex);else{

Callers 1

TFunction · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected