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

Function isURLInIndexedList

src/utils/url.ts:488–491  ·  view source on GitHub ↗
(url: string, trie: URLTrie<any>)

Source from the content-addressed store, hash-verified

486}
487
488export function isURLInIndexedList(url: string, trie: URLTrie<any>) {
489 const matches = getURLMatchesFromIndexedList(url, trie, true);
490 return matches.length > 0;
491}
492
493export function getURLMatchesFromIndexedList<T>(url: string, trie: URLTrie<T>, breakOnFirstMatch = false): T[] {
494 const found = new Set<T>();

Callers 3

isURLInDarkListMethod · 0.90
url.tests.tsFile · 0.90
isInListOptimizedFunction · 0.85

Calls 1

Tested by

no test coverage detected