MCPcopy Index your code
hub / github.com/darkreader/darkreader / push

Function push

src/utils/url.ts:497–502  ·  view source on GitHub ↗
(data: T)

Source from the content-addressed store, hash-verified

495 const matches: T[] = [];
496
497 const push = (data: T) => {
498 if (!found.has(data)) {
499 found.add(data);
500 matches.push(data);
501 }
502 };
503
504 for (const r of trie.regexps) {
505 if (r.regexp.test(url)) {

Callers 3

matchHostFunction · 0.70
matchPathFunction · 0.70

Calls 2

addMethod · 0.80
hasMethod · 0.65

Tested by

no test coverage detected