MCPcopy
hub / github.com/darkreader/darkreader / matchURLPattern

Function matchURLPattern

src/utils/url.ts:221–225  ·  view source on GitHub ↗
(url: string, pattern: string)

Source from the content-addressed store, hash-verified

219}, URL_MATCH_CACHE_SIZE);
220
221function matchURLPattern(url: string, pattern: string) {
222 const u = prepareURL(url);
223 const p = preparePattern(pattern);
224 return matchPreparedURLPattern(u, p);
225}
226
227function matchPreparedURLPattern(u: PreparedURL | null, p: PreparedPattern | null) {
228 if (

Callers 1

isURLMatchedFunction · 0.85

Calls 1

matchPreparedURLPatternFunction · 0.85

Tested by

no test coverage detected