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

Function isURLInList

src/utils/url.ts:92–99  ·  view source on GitHub ↗
(url: string, list: string[])

Source from the content-addressed store, hash-verified

90 * @paramlist List to search into.
91 */
92export function isURLInList(url: string, list: string[]): boolean {
93 for (let i = 0; i < list.length; i++) {
94 if (isURLMatched(url, list[i])) {
95 return true;
96 }
97 }
98 return false;
99}
100
101/**
102 * Determines whether URL matches the template.

Callers 11

findRelevantFixFunction · 0.90
ExtensionClass · 0.90
getInversionFixesForFunction · 0.90
BodyFunction · 0.90
MoreSettingsFunction · 0.90
FilterSettingsFunction · 0.90
CustomSettingsToggleFunction · 0.90
getCurrentThemePresetFunction · 0.90
FontGroupFunction · 0.90
PresetPickerFunction · 0.90
onPresetChangeFunction · 0.90

Calls 1

isURLMatchedFunction · 0.85

Tested by

no test coverage detected